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 » Center area post/pages » Post-Kicker, -Byline & -Footer »

[SOLVED] Want to add ShareThis button only to single post pages

Old Dec 9, 2010, 10:52 AM
5 posts · Dec 2010
I want to add this piece of code:

<?php if (function_exists(’sharethis_button’)) { sharethis_button(); }?>

to single post pages, above the footer. My site is here, and currently I have placed this code in The Loop, right above the footer.

I don't want it to show up on the Home page. I tried adding some php code to specify only to show on single post pages, but I'm a php noob, so it didn't work. How can I hide it from the home page???

P.S. I donated
Old Dec 9, 2010, 11:24 AM
1 posts · Dec 2010
Instead of using share this button, use sexy book marks plugin or addtoany plugin for wordpress. I have placed it in my site pro article base.

If you want to see sexy book marks plugin you can see Money Trials
Old Dec 9, 2010, 01:05 PM
5 posts · Dec 2010
Thank you for your suggestion. I have tried both of those plugins, and I don't like them. I prefer to use the ShareThis button.
Old Dec 10, 2010, 10:36 AM
juggledad's Avatar
23,755 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
try this
HTML Code:
<?php if (!is_home() and function_exists(’sharethis_button’)) { sharethis_button(); }?>
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Old Dec 14, 2010, 11:46 AM
5 posts · Dec 2010
Thank you! While that code did not work, this one did:

<?php if (!is_home() || function_exists(’sharethis_button’)) { sharethis_button(); }?>


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i add the add to cart button to a post or page? dilago eCommerce & Atahualpa 7 Oct 31, 2011 09:37 AM
Sharethis button automatically placed on top of entire blog Sidneyvollmer Plugins & Atahualpa 10 Sep 2, 2010 02:31 PM
How to add PHP to the loop on multi- and single post pages only? Fux Center area post/pages 2 Jun 16, 2010 04:55 AM
How do I add ShareThis at end of every post? kippiper Plugins & Atahualpa 3 Mar 13, 2010 09:52 AM
Post / Page Info Items - Button crashes comp, how do I add to post-footer? Image help everygirlssecret Post-Kicker, -Byline & -Footer 1 Jan 5, 2009 01:12 PM

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

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