Shopify themes, liquid, logos, and UX
Using Dawn theme I am encountering an issue where when clicking on a product photo to expand the image, the button to close the visibility of this section is not correctly working. Instead of having to click the button to close, the section is closing if clicked anywhere on the screen. This issue is only occurring on the desktop version, while functionality is working correctly for on the mobile version. Could anyone help with fixing this issue please? Many thanks!
Image example of section attached.
password: uIGoGb0f8H8fx1B
@nevadaskye
You have some custom code forcing the images to always be of a specific width, this is what is causing this issue. To fix this:
1. In your Shopify Admin go to: online store > themes > actions > edit code
2. Find Asset > base.css and paste this at the bottom of the file:
@media screen and (min-width: 750px){
.product-media-modal__content > * {
width: 100% !important;
}
}
If it helps you please click on the "like" button and mark this answer as a solution!
Thank you.
Kind regards,
Diego
Thank you; however, even with this implemented I am able to close the pop up gallery by clicking outside of the exit-button.
It appears to me that .media-modal may be the cause of the issue
User | RANK |
---|---|
163 | |
141 | |
70 | |
66 | |
55 |
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023