Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As per http://help.sharethis.com/customization/hover-effects#Disable-Hover, it'd be nice if we could disable displaying the popups on hover.
I'm thinking either a place in the UI where we can enter custom options (e.g. onhover: false;
), or making the current get_button_HTML() function themable...
Comment | File | Size | Author |
---|---|---|---|
#3 | sharethis-disable-hover-1304524-03.patch | 2 KB | jhedstrom |
Comments
Comment #1
jvalencia CreditAttribution: jvalencia commentedI dislike hover as well.
There are a lot of options like this, and I agree that this would be good functionality to include these options.
Most of them are on/off type of options so it makes sense to add checkmarks to the configuration page.
For the time being you can insert it into the code or your template as a short term fix.
Comment #2
jeramy CreditAttribution: jeramy commentedYou can open sites/all/modules/sharethis/sharethis.module...
Search for:
<script type='text/javascript'>stLight.options({publisher:'$publisher_id'});</script>";
Replace it with:
<script type='text/javascript'>stLight.options({publisher:'$publisher_id',onhover:'false',});</script>";
...and that seemed to work for me.
Comment #3
jhedstromThis patch makes the hover behavior configurable.
Comment #4
rolandu CreditAttribution: rolandu commentedI am not able to install cvs patches on my server, however I found another workaround until this is integrated into the stable branch: Since the onhover-property has to be pasted right after the publisher id, you just have to add "', onhover: 'false" (without the double quotes) in your publisher id field.
So, for example, if the field says that your publisher id is
12345
instead put into the field the code
12345', onhover: 'false
Maybe this helps someone...
Comment #5
RobLoachThanks! I embedded the option in the other stoptions settings: http://drupalcode.org/project/sharethis.git/commit/806c2a1
Comment #7
DaPooch CreditAttribution: DaPooch commentedIf you're not wanting to use the dev version the edit above needs slight modification on 7x-2.5. Should look like this now on line 470 of sharethis.module file:
Comment #8
m.attar CreditAttribution: m.attar commentedFor quick solution you can use the following code: