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
Adding widget content to header - above or below the social media icons
Started by
dsh2000
, Sep 19 2011 10:20 PM
5 replies to this topic
#1
Posted 19 September 2011 - 10:20 PM
#2
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:
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.
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
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
Posted 29 September 2011 - 07:43 PM
Sorry for the late reply....
Kastelic,thank you!
It worked out great!
#5
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
Posted 16 August 2012 - 11:38 AM
or it is also possible to include the transposh widget into the navigation bar?












