Skip to content

Instantly share code, notes, and snippets.

@makfruit
Created May 16, 2012 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makfruit/2710661 to your computer and use it in GitHub Desktop.
Save makfruit/2710661 to your computer and use it in GitHub Desktop.
A drop-in script for Ecwid to have the share buttons panel to display at all times (so that a customer doesn't have to click or mouse-over it)
<script>
/*
A drop-in script for Ecwid to have the share buttons panel to display at all times (so that a customer doesn't have to click or mouse-over it).
NOTE: jQuery is required
*/
if (!jQuery.browser.msie && typeof(Ecwid) == 'object') {
Ecwid.OnPageLoaded.add(function(page) {
if ('PRODUCT' == page.type) {
jQuery('.ecwid-productBrowser-sharePanel-header').hide().closest('table').trigger('mouseover').bind('mouseout', function() {
jQuery(this).trigger('mouseover');
});
}
});
}
</script>
@NechyporukD
Copy link

Hi!

Great job. Your code snippet is a single solution to display Ecwid share buttons panel that I can find on the web.

But I have one problem. This isn't working for me.

This code was posted about 3 years ago. Ecwid team has made a ton of updates. Did this code still working right? If not, can you please give advice how it should be modernized?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment