Hi!
How can we remove the zoom on the ‘Hover to reveal second image’ option on Shopify Impulse theme?
See red line on attached image. Because of the zoom, images are now cut off..
Hope someone can assist!
Hi!
How can we remove the zoom on the ‘Hover to reveal second image’ option on Shopify Impulse theme?
See red line on attached image. Because of the zoom, images are now cut off..
Hope someone can assist!
If no option exists, you can override the zoom effect in the theme’s CSS.
Go to Online Store > Themes > Edit Code.
Locate the theme.css or style.css file in the Assets folder.
Add the following CSS:
css
Copy code
.product-item:hover .second-image { transform: none !important; /* Disables zoom effect / } .product-item .second-image { transition: none !important; / Disables animation */ }
If the zoom effect is implemented via JavaScript, you may need to disable or modify the related script.
Look for the JavaScript file controlling the hover effect, usually in the Assets folder (e.g., product.js or hover.js).
Search for functions like scale, zoom, or transform related to the .second-image or similar selectors.
Comment out or adjust the code to prevent the zoom effect. For example:
javascript
Copy code
// Disable zoom effect document.querySelectorAll(‘.second-image’).forEach((image) => { image.style.transform = ‘none’; });
Always make a backup of your theme before making changes. Use the Download theme file option in Shopify.
I have written custom CSS for this solution. Please follow below steps and let me know your feedback.
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code just above tag
If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!
Best Regards,
Makka