Jump to content


Photo
* * * * * 1 votes

printfriendly button to sharebar

printfriendly sharebar

  • Please log in to reply
1 reply to this topic

#1 respectgb

respectgb

    Newbie

  • Members

  • 6 posts
  • LocationSouth Yorkshire
  • Country: Country Flag

Posted 18 May 2013 - 11:49 AM

Hi,

 

I'm wanting to add a printfriendly button to the pagelines sharebar. The php required to add the printfriendly button within the theme is as follows:

 

<?php if(function_exists('pf_show_link')){echo pf_show_link();} ?>

 

my problem is that I'm unsure how to embed this within the sharebar.

 

Thanks in advance!!



#2 Rob

Rob

    One Smart Egg

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

Posted 18 May 2013 - 04:44 PM

Hi,

You may be aware that you can add the same elements in the sharebar with shortcodes provided through the Social Media section found here: 

Please Login or Register to see this Hidden Content

 

A plugin called

Please Login or Register to see this Hidden Content

will convert your PHP snippet to a shortcode. 

 

This would let you add the custom shortcode to the others giving you the custom link you desire.

 

Alternatively, you'd have to clone the Sharebar section to Base Theme, and modify that. If you're not experienced in writing PHP code, it would likely require the assistance of a developer.