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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jvalencia’s picture

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

jeramy’s picture

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

jhedstrom’s picture

Title: Disable hover » Option to disable hover behavior
Status: Active » Needs review
FileSize
2 KB

This patch makes the hover behavior configurable.

rolandu’s picture

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

RobLoach’s picture

Status: Needs review » Fixed

Thanks! I embedded the option in the other stoptions settings: http://drupalcode.org/project/sharethis.git/commit/806c2a1

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

DaPooch’s picture

Issue summary: View changes

If 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:

 // Provide the publisher ID.
  $stlight = drupal_json_encode(array(
    'publisher' => $data_options['publisherID'],
    //disable hover engaging the share box
    'onhover' => 'false',
  ));
m.attar’s picture

For quick solution you can use the following code:

function MODULENAME_js_alter(&$javascript) {
     //Disable share this hover effect   
    drupal_add_js('stLight.options({onhover: false});', 'inline');
}