Archived

This topic is now archived and is closed to further replies.

  • 0

Adding widget content to header - above or below the social media icons

Question

Posted · Report post

Hello everyone, I have tried to find an answer to this in the forums, but I am a bit stumped. My goal is to add the transposh widget to either above or below the social media icons that are displayed on the top-right section of the platformpro header. The transposh plugin gives a code - <?php if(function_exists("transposh_widget")) { transposh_widget(); }?> - but I'm not sure how I could integrate it. Does this require a hook? And if so, how would I integrate that? Thank you, Daniel

Share this post


Link to post
Share on other sites

5 answers to this question

Posted · Report post

First activate the base child theme and open platformbase/functions.php. Here's what your complete function will look like:

	add_action('pagelines_inside_bottom_branding','insert_transposh');
	function insert_transposh(){
	if(function_exists("transposh_widget")) { transposh_widget(); }
	}
	

Here are some of the hooks you may want to try: pagelines_before_branding pagelines_inside_top_branding pagelines_inside_bottom_branding pagelines_after_branding pagelines_before_branding_icons pagelines_branding_icons_start pagelines_branding_icons_end pagelines_after_branding_wrap You will probably have to do additional positioning with CSS once its there.

Share this post


Link to post
Share on other sites

Posted · Report post

Hello Friends, had some the same to do and found the solution with the universal sidebar great. BUT: -How can i let apear the widget on the right side (currently it is on the upper left side)? - Can I reduce the margins (distances) in between universal sidebar/header/navigation bar?

Share this post


Link to post
Share on other sites

Posted · Report post

or it is also possible to include the transposh widget into the navigation bar?

Share this post


Link to post
Share on other sites

Posted · Report post

You can also use the universal widget sidebar to do this. Just style the universal widget to show up at the top of the header and then you can drag what you want into it in the Widgets menu. -Adam

Share this post


Link to post
Share on other sites

Posted · Report post

Sorry for the late reply.... Kastelic,thank you! It worked out great!

Share this post


Link to post
Share on other sites