Jump to content


Photo

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


  • Please log in to reply
5 replies to this topic

#1 dsh2000

dsh2000

    Advanced Member

  • Members
  • 44 posts

Posted 19 September 2011 - 10:20 PM

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

#2 kastelic

kastelic

    Advocate

  • Members

  • 3081 posts
  • Country: Country Flag

Posted 19 September 2011 - 11:08 PM

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.

#3 inov8ed

inov8ed

    Super Member

  • Members
  • PipPipPipPip
  • 122 posts
  • Country: Country Flag

Posted 20 September 2011 - 03:41 PM

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

#4 dsh2000

dsh2000

    Advanced Member

  • Members
  • 44 posts

Posted 29 September 2011 - 07:43 PM

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

#5 smartfinance

smartfinance

    Newbie

  • Members
  • 3 posts
  • Framework Version:2,3
  • Country: Country Flag

Posted 16 August 2012 - 11:33 AM

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?

#6 smartfinance

smartfinance

    Newbie

  • Members
  • 3 posts
  • Framework Version:2,3
  • Country: Country Flag

Posted 16 August 2012 - 11:38 AM

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