[Skip to main content](#vessel-content)

#   Disable hover effect on product image thumbnails

##

- **[dancingkazzaf](/forum/user/31984-dancingkazzaf "View dancingkazzaf's Profile")**
- [![dancingkazzaf's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31984-dancingkazzaf "View dancingkazzaf's Profile")
- [ Offline](/forum/user/31984-dancingkazzaf)

Less More

- Posts: 256
- Thank you received: 2
-
-

8 years 11 months ago -  8 years 11 months ago [\#284718](#284718) by [dancingkazzaf](/forum/user/31984-dancingkazzaf "View dancingkazzaf's Profile")  Replied by *[dancingkazzaf](/forum/user/31984-dancingkazzaf "View dancingkazzaf's Profile")* on topic *[Disable hover effect on product image thumbnails](/forum/25-install-update/863681-disable-hover-effect-on-product-image-thumbnails?start=20#284718 "Hi,  I am trying to change the way that the thumbnails are displayed under the main product image on the product page.  I need the hover effect to be disabled when hovering over the thumbnail images and for the thumbnail images to be displayed as the main image when the user clicks on the thumbnail.  How can I do this?")*

The issue is exactly the same issue that this thread is about.

I wanted the thumbnails to be clickable rather than hover over to change the main image on the product page. I have done this following the guide above.
However the issues arose when clicking on the main image it enlarges in a popup box, but doesn't matter which image thumbnail you have selected it always only enlarges the first thumbnail image.

Now in the guide above it says to swap the script code out with the one given. However that script code has changed in the new version of Hikashop. I just need to know what script code to change in order to allow any thumbnail image that is selected to be enlarged.

Here is the link
[ mirageweddingbackdrops.co.uk/dev/mirage-...ght-wedding-backdrop](http://mirageweddingbackdrops.co.uk/dev/mirage-wedding-backdrops-products/mirage-wedding-backdrops/product/2-starlight-wedding-backdrop)

**Using the guide previously which is probably out of date I changed the script code in 'block\_img' from this:**
*e = e \|\| window.event;
e.stopPropagation();
e.cancelBubble = true;
window.Oby.cancelEvent(e);
window.localPage.images\[id\].click();
return false;*

**To this:**
*e = e \|\| window.event;
e.stopPropagation();
e.cancelBubble = true;
window.Oby.cancelEvent(e);
SqueezeBox.fromElement(window.localPage.images\[id\],{parse:'rel'});
return false;*

It didn't do anything.

Last edit: 8 years 11 months ago by [dancingkazzaf](/forum/user/31984-dancingkazzaf "View dancingkazzaf's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2MzY4MS1kaXNhYmxlLWhvdmVyLWVmZmVjdC1vbi1wcm9kdWN0LWltYWdlLXRodW1ibmFpbHM/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dancingkazzaf](/forum/user/31984-dancingkazzaf "View dancingkazzaf's Profile")**
- [![dancingkazzaf's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31984-dancingkazzaf "View dancingkazzaf's Profile")
- [ Offline](/forum/user/31984-dancingkazzaf)

Less More

- Posts: 256
- Thank you received: 2
-
-

8 years 11 months ago [\#284758](#284758) by [dancingkazzaf](/forum/user/31984-dancingkazzaf "View dancingkazzaf's Profile")  Replied by *[dancingkazzaf](/forum/user/31984-dancingkazzaf "View dancingkazzaf's Profile")* on topic *[Disable hover effect on product image thumbnails](/forum/25-install-update/863681-disable-hover-effect-on-product-image-thumbnails?start=20#284758 "Hi,  I am trying to change the way that the thumbnails are displayed under the main product image on the product page.  I need the hover effect to be disabled when hovering over the thumbnail images and for the thumbnail images to be displayed as the main image when the user clicks on the thumbnail.  How can I do this?")*

Hello I have fixed the issue I forgot to uncomment out this line

*$attr .= ' onclick="return window.localPage.openImage(\\'hikashop\_main\_image'.$variant\_name.'\\', \\''.$variant\_name.'\\', event);"';*

This as resolved the problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2MzY4MS1kaXNhYmxlLWhvdmVyLWVmZmVjdC1vbi1wcm9kdWN0LWltYWdlLXRodW1ibmFpbHM/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.044 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
