mbdtw8 Posted March 19, 2022 Share Posted March 19, 2022 Hi everyone! Just moved to 7.1 but realised that there's no "stacked' option in mobile for the images in all product pages. The options available are restricted to carousel and full square size. I was hoping to find some answers for this. I'd very much appreciate it! Thank you in advance. Link to comment
Solution tuanphan Posted March 21, 2022 Solution Share Posted March 21, 2022 Add to Design > Custom CSS @media screen and (max-width:767px) { .ProductItem-gallery-carousel-controls { display: none !important; } .ProductItem-gallery-current-slide-indicator { display: none; } .ProductItem-gallery-slides-item { position: static !important; height: auto !important; width: 100% !important; visibility: initial !important; } img.ProductItem-gallery-slides-item-image { width: 100% !important; height: auto !important; left: 0 !important; } .ProductItem-gallery-slides:before { padding-bottom: 0 !important; } .ProductItem-gallery-scroll { display: none !important; } } meguano and Begona 2 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
mbdtw8 Posted March 22, 2022 Author Share Posted March 22, 2022 Works like a charm, thank you so so much! Link to comment
meguano Posted February 1, 2023 Share Posted February 1, 2023 Thank you so much!! Love the stacked 🙂 tuanphan 1 Link to comment
Nostalgique Posted July 18, 2023 Share Posted July 18, 2023 This is a great solution, thank you! There is a weird problem on my website though. Where the first image should be, there is a blank area inserted before it. The blank area is the size of an image, so when you first open the page, it appears blank. You do not see any images unless you scroll down. I have tried tweaking it, but with no luck. Do you have any ideas @tuanphan? Here is my product page... https://nostalgique.com.au/gallery/p/nostalgique-book Link to comment
Nostalgique Posted July 18, 2023 Share Posted July 18, 2023 I have finally worked out the problem. I will add some detail here incase anyone else hits the problem. The above changes were conflicting with other code in my CSS that allows me to have different shaped images on my website, ie landscape and portrait formats. This is the other conflicting code in my CSS... .ProductItem.hentry.tag-portrait .ProductItem-gallery-slides:before { padding-bottom: 150%!important; } To address the conflict, I simply added a new condition to only apply the change when not on a mobile screen... @media screen and (min-width:768px) { .ProductItem.hentry.tag-portrait .ProductItem-gallery-slides:before { padding-bottom: 150%!important; } } That seems to have fixed it! Link to comment
danegrady Posted November 18, 2023 Share Posted November 18, 2023 (edited) This works for me, but you can still swipe the images and it looks odd. any way to prevent them from swiping? Edited November 18, 2023 by danegrady Link to comment
tuanphan Posted November 22, 2023 Share Posted November 22, 2023 On 11/18/2023 at 10:43 PM, danegrady said: This works for me, but you can still swipe the images and it looks odd. any way to prevent them from swiping? Try this CSS under section.ProductItem-gallery { pointer-events: none; user-select: none !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment