Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello Shopify Community,
If you click on the link to my site: https://bambooliving.com/collections/all-home-models you will notice that I have a zoom on hover effect implemented for the images. I want the zoom to work without the image container size changing, so I used the { overflow: hidden; } CSS property which only partially worked. For whatever reason, the image container is expanding, but ONLY at the bottom of the image. Does anyone have a fix for this?
Thank you in advance for your help!
Solved! Go to the solution
This is an accepted solution.
Hi @HannaSak
This is Richard from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
<style>
.product-card__figure {
overflow: hidden;
}
</style>
The overflow hidden should be added to the container itself, not the image
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
This is an accepted solution.
Hi @HannaSak
This is Richard from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
<style>
.product-card__figure {
overflow: hidden;
}
</style>
The overflow hidden should be added to the container itself, not the image
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Hi Richard, this did the trick! Thank you so much for your help!
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024