Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   New Versions, & Updating (http://forum.bytesforall.com/forumdisplay.php?f=12)
-   -   Coding for %pinit% in footer? (http://forum.bytesforall.com/showthread.php?t=16843)

kristal Feb 24, 2012 12:28 PM

Coding for %pinit% in footer?
 
Can someone write some code for me that I can add into the bfa_postinfo.php so that I can use the shortcode %pinit% in my footer? I'm using the pinterest plugin (http://pinterestplugin.com/)

TIA!

kristal Feb 24, 2012 12:36 PM

PS the shortcode that I need it to output is:

<?php echo do_shortcode('[pinit]'); ?>



I know I need to add something similar to the Sociable one:

Code:

// For the "Sociable" plugin
        if ( strpos($postinfo_string,'%sociable%') !== FALSE ) {
                $sociable = ( (function_exists('sociable_html2') AND
                function_exists( do_sociable() ) ) ? do_sociable() : "");
                $postinfo = str_replace("%sociable%", $sociable, $postinfo);
        }

but not sure what to replace

lmilesw Feb 25, 2012 09:05 AM

That is the type of issue where the ability to add a new widget are can be handy. You can add a new widget area where you want to put the Pinit shortcode and then add the shortcode to the widget after installing a plugin that allows for shortcodes to be executed in a text widget.

If you edit the theme files as you wanted then you will have to re-edit if you ever upgrade the theme.


All times are GMT -6. The time now is 03:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.