• My client does not like the hover popups on the email and sharethis icon buttons. I thought to turn this off I should add onhover: false into the code as follows:

    <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 charset="utf-8" type="text/javascript">stLight.options({onhover: false;"publisher":"wp.a927ca6e-0377-4c64-9366-cf9791a10b21"});var st_type="wordpress3.9.1";</script>

    but it has no effect so I guess I( must be doing it wrong.

    Could you let me know the right way please?

    Thanks

    https://wordpress.org/plugins/share-this/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The code seems to be fine. General implementation is –
    <script type=”text/javascript”>stLight.options({publisher: “Publisher_key”, onhover:false});</script>

    Please provide your website details so that we can check the behavior.

    Thread Starter Julianwave

    (@julianwave)

    I’ve had another look and found out a bit more. What is happening is that I add in the “onhover: false;” bit in the “view & edit code” box and click save. It all looks ok at that point. However if I leave the cms screen (“6. your current configuration”) and then return to it, the “onhover: false;” bit has disappeared from the code, which has reverted to its default auto generated state, so in other words my edit is not being saved properly even though it says it is at the time.

    Thread Starter Julianwave

    (@julianwave)

    Thread Starter Julianwave

    (@julianwave)

    Having said all the above, this is in fact showing in the page source

    <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 charset="utf-8" type="text/javascript">stLight.options({onhover: false;"publisher":"wp.a927ca6e-0377-4c64-9366-cf9791a10b21"});var st_type="wordpress3.9.1";</script>

    although it is still having no effect.

    Thread Starter Julianwave

    (@julianwave)

    Please make a change in your code –

    <script charset=”utf-8″ type=”text/javascript”>stLight.options({“publisher”:”wp.a927ca6e-0377-4c64-9366-cf9791a10b21″, onhover:false});var st_type=”wordpress3.9.1″;</script>

    And let us know if this works for your or not.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘onhover: false not working?’ is closed to new replies.