WordPress.org

Ready to get started?Download WordPress

Forums

ShareThis: Share Buttons and Social Analytics
[Plugin: ShareThis] Disable on home page, archives, tags, search pages? (5 posts)

  1. huyz
    Member
    Posted 2 years ago #

    Is it possible to disable the display of buttons on anything but the single-post or single-page pages?
    I don't want the buttons displayed on the home, archives, tags, and search pages.

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

  2. jinbatsu
    Member
    Posted 2 years ago #

    Yes, please I also want like that.
    Not display in home, archive, tags and pages.
    This should be has an option.

  3. trixienolix
    Member
    Posted 2 years ago #

    i want this too - i'm choosing a different plugin because of this lack of control

  4. thecodezombie
    Member
    Posted 2 years ago #

    There's no way to disable the plug-in on specific areas.

    What you need to do is disable it everywhere using the plug-ins settings (2 drop-downs, set both to no), then place the code into your theme, on the template pages you want it to appear on (e.g blog post = single.php).

  5. sharethissupport
    Member
    Posted 1 year ago #

    Hi,
    In order to add sharethis buttons to post pages only, you'll need to add the buttons manually.
    Here are the steps:
    Sharethis script and span tags go on the page where you want the buttons to appear and they also determine what kind of button appears as well as what URL and title it shares. You will have to put 'script tags' in your Main index template(index.php) and 'span tags ' in Single Post template(single.php).

    Here is the basic span for just the ShareThis button:

    <span class=""st_sharethis"" st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' displayText=""ShareThis""></span>

    [ Code edited with backticks. Moderator note: when sharing code examples, please wrap the code in backticks or use the code button. ]

    You can change the class of the span to determine the button that appears. For example class=""st_twitter"" will make a twitter icon and class=""st_email_vcount"" will make a email vertical counter button.

    Hope this helps.
    Regards,
    SharethisSupport

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags