WordPress.org

Support

Support » Plugins and Hacks » ShareThis: Free Sharing Buttons and Tools » [Plugin: ShareThis] Disable on home page, archives, tags, search pages?

[Plugin: ShareThis] Disable on home page, archives, tags, search pages?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Yes, please I also want like that.
    Not display in home, archive, tags and pages.
    This should be has an option.

    i want this too – i’m choosing a different plugin because of this lack of control

    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).

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: ShareThis] Disable on home page, archives, tags, search pages?’ is closed to new replies.
Skip to toolbar