Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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
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!
  #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,176 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



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 01:18 PM.


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