WordPress.org

Ready to get started?Download WordPress

Forums

ShareThis: Share Buttons and Social Analytics
bug: HoverBar Shows on pages and posts (4 posts)

  1. Maraki
    Member
    Posted 1 year ago #

    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/

  2. sharethissupport
    Member
    Posted 1 year ago #

    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]

  3. Maraki
    Member
    Posted 1 year ago #

    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

  4. sharethissupport
    Member
    Posted 1 year ago #

    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]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.