Jump to content


Photo
- - - - -

Adding A Facebook Like Link After Page Title/logo Using Hooks

functions.php hooks

Best Answer davemoppert , 02 December 2012 - 11:40 PM

I got it figured out. Turns out the div was forcing it to show up before the title.  I just put it in a span, added a class style to the span and it is working now.  

Go to the full post


  • Please log in to reply
4 replies to this topic

#1 davemoppert

davemoppert

    Super Member

  • Members

  • 148 posts
  • Country: Country Flag

Posted 02 December 2012 - 09:52 PM

I am wondering if there is any way for me to get a facebook like button to show up AFTER the site title/logo in the header?  I am close -- was able to add one above the title/logo, but cannot get it to align to the right of it.  I accomplished this by adding a hook into the functions.php: 

 

Please Login or Register to see this Hidden Content

 

You can see the site here:

Please Login or Register to see this Hidden Content

(it is a subsite)

 

I tried to change the hook function to 'pagelines_after_site_logo' and 'after_pagelines_site_logo' without any luck.  Any idea what I can do to accomplish this the way I would like?

 



#2 davemoppert

davemoppert

    Super Member

  • Members

  • 148 posts
  • Country: Country Flag

Posted 02 December 2012 - 09:57 PM

This is what I want it to look like:

whatIwant.png

 

This is what it currently looks like: 

whatItis.png



#3 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 02 December 2012 - 11:11 PM

You know there's always the option of adding a div wrapped shortcode from

Please Login or Register to see this Hidden Content

 

Wrapping it in a div or class would allow you to position it where you'd like.



#4 davemoppert

davemoppert

    Super Member

  • Members

  • 148 posts
  • Country: Country Flag

Posted 02 December 2012 - 11:40 PM   Best Answer

I got it figured out. Turns out the div was forcing it to show up before the title.  I just put it in a span, added a class style to the span and it is working now.  



#5 davemoppert

davemoppert

    Super Member

  • Members

  • 148 posts
  • Country: Country Flag

Posted 02 December 2012 - 11:41 PM

Hey Robb - I would (I love the pagelines shortcodes) but the client needs it to work with analytics from her addthis.com account.  







Also tagged with one or more of these keywords: functions.php, hooks