Jump to content
Sign in to follow this  
dsh2000

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

Recommended Posts

dsh2000    2
dsh2000

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
kastelic    6
kastelic

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
inov8ed    0
inov8ed

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
dsh2000    2
dsh2000

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

Share this post


Link to post
Share on other sites
smartfinance    0
smartfinance

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
smartfinance    0
smartfinance

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×