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

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

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 http://sharethis.com/publishers/get-sharing-tools (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.

    Regards,
    [moderated]

    Thread Starter maraki

    (@neodjandre)

    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="http://w.sharethis.com/button/buttons.js"></script><script type="text/javascript">stLight.options({publisher:"wp.356c2fb3-3132-4861-ab64-0a4d042a31b0"});</script><script charset="utf-8" type="text/javascript" src="http://s.sharethis.com/loader.js"></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!

    thanks
    Maraki

    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.