Support » Plugin: ShareThis: Free Sharing Buttons and Tools » bug: HoverBar Shows on pages and posts

  • When i enable hoverbar it shows on all pages and posts even if I select “No” in the options “Automatically add ShareThis to your posts?*.”

    How do i prevent this from happening?

    I only want the hover bar to appear on my custom post types and i can manually insert the code on my single.php file.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,
    The options “Automatically add ShareThis to your pages/pages?” control the behaviour of buttons across posts and pages and not the other tools (Like Hoverbar / ShareNow).

    If you wish to have Hoverbar only on posts, you can disable Hoverbar from plug-in & copy the Code for Hoverbar from (select “Website” at “Step 1” and you should see Hoverbar at “Step 2” under “Bars”) and place the ‘script tags’ in your Main index template(index.php) and ‘span tags ‘ in Single Post template(single.php) to achieve this.

    Hope this is helpful. Contact us is case you face any issues while implementing Hoverbar on your blog.


    is there a workaround for this to load only the “script tags” in the single.php ?

    I think from a quick test I did, it worked fine if I load this code only on single.php

    <script charset="utf-8" type="text/javascript">var switchTo5x=true;</script><script charset="utf-8" type="text/javascript" src=""></script><script type="text/javascript">stLight.options({publisher:"wp.356c2fb3-3132-4861-ab64-0a4d042a31b0"});</script><script charset="utf-8" type="text/javascript" src=""></script><script charset="utf-8" type="text/javascript">var options={ publisher:"wp.356c2fb3-3132-4861-ab64-0a4d042a31b0", "position": "left", "chicklets": { "items": ["facebook","twitter","linkedin","email","pinterest"] } }; var st_hover_widget = new sharethis.widgets.hoverbuttons(options);</script>
    [Please post code or markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    I am very picky about loading times and scripts I use!


    Hello Maraki,

    There is no work around for the script tags as it is necessary to put the script tags in the index.php template only.

    Please let us know if you have any other queries.

    [Signature moderated]

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘bug: HoverBar Shows on pages and posts’ is closed to new replies.