Support » Plugins and Hacks » Deleting/Deactivaating ShareThis on excerpt.

  • Hi!

    1. Go to this site http://www.theyoungexec.com

    You will see that The Posts Excerpts have the ShareThis Option but I don’t want to show them in my HomePage or any excerpt. I only want to show them on individual post or page.

    2. Is there any shortcode available for ShareThis Plugin? It has option to add it automatically in post & page. If I deactivate it for pages then how can I add it on a individual page (I will keep setting to add it on post automatically.

    Regards
    Mrinal

Viewing 7 replies - 1 through 7 (of 7 total)
  • I was very much worried as I haven’t received any replies from Support forum so that I made some research & I have found the solution myself after some research.

    Delete this lines from sharethis.php file

    // 2008-08-15 Excerpts don’t play nice due to strip_tags().
    add_filter(‘get_the_excerpt’, ‘st_remove_st_add_link’,9);
    add_filter(‘the_excerpt’, ‘st_add_widget’);

    Thank you very much, I commented the lines you said and it works now perfectly! 😀

    Thank you very much, I commented the lines you said and it works now perfectly! 😀

    syrinx32123

    (@syrinx32123)

    worked perfectly, thanks!

    Hi Mkrdip,

    Thank you very much for speaking about it. I think it’s very important to keep control among exerpt rendering.

    Maybe it’s better not to edit the plugin code directly, to avoid update issues.

    To remove the filters I used remove_filter function and it worked.

    Here’s what I added to my functions.php:

    remove_filter('get_the_excerpt', 'st_remove_st_add_link', 9);
    remove_filter('the_excerpt', 'st_add_widget');

    Hope this helps!

    Hi mkrdip, Thanks for raising this issue, I had the same problem for my site http://www.celebritymeasurement.com , which is now resolved . 🙂

    Hi! marcopanichi,

    Thank you for your awesome Suggestion!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Deleting/Deactivaating ShareThis on excerpt.’ is closed to new replies.