Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » New Versions, & Updating »

Coding for %pinit% in footer?


  #1  
Old Feb 24, 2012, 12:28 PM
kristal
 
32 posts · Feb 2010
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!
  #2  
Old Feb 24, 2012, 12:36 PM
kristal
 
32 posts · Feb 2010
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

Last edited by kristal; Feb 24, 2012 at 12:39 PM.
  #3  
Old Feb 25, 2012, 09:05 AM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
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.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
New in here and new to coding. AwesomeDude Atahualpa 3 Wordpress theme 6 Oct 22, 2011 04:51 PM
Could someone please answer a coding question ... phogzzz Atahualpa 3 Wordpress theme 3 Apr 5, 2011 03:19 PM
Can I achieve this with widgets? Or do I need custom coding - can pay for help. nickcroker Sidebars & Widgets 9 Dec 4, 2010 03:15 AM
How to add post images and excerpts to coding? optimalwebsite Center area post/pages 0 Jul 24, 2010 05:02 AM
Where is php sidebar coding pamlicoink Sidebars & Widgets 3 Aug 12, 2009 05:07 PM


All times are GMT -6. The time now is 11:04 PM.


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