WordPress.org

Forums

ShareThis: Share Buttons and Social Analytics
How to remove sharethis buttons from excerpts? (8 posts)

  1. syrinx32123
    Member
    Posted 1 year ago #

    This is a really annoying feature of ShareThis, the social buttons appear on the blog summary on the home page: http://www.travelgrom.com

    I only want them to appear on individual posts and pages, not on excerpts. I've read a ton of threads on how to do this but nothing works with the current version. Can someone please help!

    http://wordpress.org/plugins/share-this/

  2. sharethissupport
    Member
    Posted 1 year ago #

    Our new ShareThis Plugin is under development and will be out soon.
    This release will solve the issue.
    We will update the info on our Website as well.

  3. 20somethingsyndrome
    Member
    Posted 1 year ago #

    This is an issue for me as well. Has this been updated?

  4. sharethissupport
    Member
    Posted 1 year ago #

    We went ahead and issued a new release (v. 7.0.9). This is up now. This version contains the option to show the buttons on selected pages. And for posts excerpts we have already forwarded the request to our engineering team.

  5. Sarah Cairncross
    Member
    Posted 1 year ago #

    I found the answer in another thread (http://wordpress.org/support/topic/remove-share-this-from-the_excerpt?replies=35)

    Out of the two solutions offered, the one near the end worked for me. I added this to my functions.php file

    function remove_sharethis() {
    if ( ! is_singular( array( 'post', 'page' ) ) ) {
    remove_filter('the_content', 'st_add_widget');
    remove_filter('the_excerpt', 'st_add_widget');
    remove_action('wp_head', 'st_widget_head');
    }
    }
    add_action( 'template_redirect', 'remove_sharethis' );

  6. sharethissupport
    Member
    Posted 1 year ago #

    We already raised this as a feature request to add an option to remove the Buttons from the Post Excerpts. It will be available in future versions of plugins.
    But if you have access to your code, then you can try it at your end. It is not advisable to make changes to the code, but couple of ShareThis users has successfully used the above method.

  7. Pangea27
    Member
    Posted 1 year ago #

    I'd be interested to know roughly when you think the feature to remove the buttons from the post excerpts will be available? Reading through various posts here this featured has been talked about and is apparently under development but I'd like to get a better idea of when to expect this. I really want to get rid off the buttons on my homepage and I am considering switching plug-ins if this feature doesn't come soon.

  8. sharethissupport
    Member
    Posted 12 months ago #

    This is in our priority list and will be available in future plugin versions.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • ShareThis: Share Buttons and Social Analytics
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic