Now my blog is with the wordpress killer theme Thesis. While customizing I could able to find almost all the tutorials expect this. With the experiance I gained I thought of sitting and writing this small code which helps me in organizing ShareThis icons after my post.
What exactly is the problem? I use ShareThis which helps the visitor to easily share my content. Many bloggers are directly use facebook share, tweetmeme icons instead of ShareThis Plugin. My case is different I like this ShareThis plugin and I want to enable it after my post(s). When I am enabling it in Thesis, it is showing on the front page even that I didn’t like.
For what this code is for? To enable ShareThis after post and to remove the icons being displayed on FrontPage or HomePage.
- Take a backup of custom-functions.php
- First install ShareThis plugin to your blog
- Login to your Dashboard -> Thesis -> Custom File Editor
- Open Custom-functions.php
Add the below code
function show_sharethis() {
if( is_single() ){
echo “<div id=\”series-of-social-buttons\”>”;
sharethis_button();
echo “</div>”;
echo “<div style=\”clear:both;\”></div>”;
}}
add_filter(‘thesis_hook_after_post’, ‘show_sharethis’);
Save !! This blog is live example of above code.
Thanks. It helps a lot.
Glad it worked for you