[SOLVED] Want to add ShareThis button only to single post pages
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 :) |
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 |
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.
|
try this
HTML Code:
<?php if (!is_home() and function_exists(’sharethis_button’)) { sharethis_button(); }?> |
Thank you! While that code did not work, this one did:
Code:
<?php if (!is_home() || function_exists(’sharethis_button’)) { sharethis_button(); }?> |
All times are GMT -6. The time now is 02:55 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.