WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Deleting/Deactivaating ShareThis on excerpt. (8 posts)

  1. Mrinal Kanti Roy
    Member
    Posted 2 years ago #

    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

  2. Mrinal Kanti Roy
    Member
    Posted 2 years ago #

    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');

  3. Quincunx
    Member
    Posted 2 years ago #

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

  4. Quincunx
    Member
    Posted 2 years ago #

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

  5. syrinx32123
    Member
    Posted 1 year ago #

    worked perfectly, thanks!

  6. Marco Panichi
    Member
    Posted 1 year ago #

    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!

  7. i4infomania
    Member
    Posted 1 year ago #

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

  8. Mrinal Kanti Roy
    Member
    Posted 1 year ago #

    Hi! marcopanichi,

    Thank you for your awesome Suggestion!

Topic Closed

This topic has been closed to new replies.

About this Topic