catherineamesbury Posted November 21, 2022 Share Posted November 21, 2022 Hi, I'm looking for some help with the product details pages on my web store. On mobile, I'm concerned that users may not notice that the images are scrollable when the black left/right arrows are against a dark background. Good example: https://catherineamesbury.com/shop/p/bella-pearl-bracelet On the desktop site there is a list of tiny previews of each image, which is perfect. I would love to have something like that on mobile if possible, but as far as I can tell there's no such feature built into the template I'm using. It also occurred to me that it might be easier to just add a faint white box around the arrows, as is default when the section format is set to Wrap, Full, or Half. I'm quite keen to keep it on Simple though as this looks best on desktop. Many thanks! Link to comment
tuanphan Posted November 24, 2022 Share Posted November 24, 2022 Hi, How about adding a background color behind arrows? If you like this, we can give some custom code to add it Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
catherineamesbury Posted November 24, 2022 Author Share Posted November 24, 2022 Hi, that sounds perfect, thank you so much! Link to comment
tuanphan Posted November 27, 2022 Share Posted November 27, 2022 On 11/25/2022 at 6:10 AM, catherineamesbury said: Hi, that sounds perfect, thank you so much! Try adding this to Design > Custom CSS /* Product image arrows mobile */ @media screen and (max-width:767px) { .ProductItem-gallery .enable-on-first-image-load.enabled>button { background-color: #f1f; } } catherineamesbury 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
catherineamesbury Posted November 28, 2022 Author Share Posted November 28, 2022 Thanks so much! They're magenta, but I was able to fix that and add some transparency by changing the colour to #fff8 However, it's not showing up on my actual mobile. The mobile preview in desktop looks great and I've hit save, but it's not working in practice. Any idea what could be causing that? Link to comment
Solution catherineamesbury Posted November 28, 2022 Author Solution Share Posted November 28, 2022 (edited) Update: Fixed it. For some reason my mobile browser didn't like the hex value with included alpha. Once I set that to a simple #FFFFFF it worked. So I googled and added the individual parameter for opacity which worked as well. I also decided to enable it on the desktop site for consistency. Thanks again! The code I landed on with regards to the arrows is: /* product image arrows */ @media screen{ .ProductItem-gallery .enable-on-first-image-load.enabled>button { background-color: #FFFFFF; opacity:0.5; } } Edited November 28, 2022 by catherineamesbury correction, not having to make a third post in a row Link to comment
tuanphan Posted November 29, 2022 Share Posted November 29, 2022 you can also use this attribute background-color: rgba(255,255,255,0.5); catherineamesbury 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
catherineamesbury Posted November 29, 2022 Author Share Posted November 29, 2022 Any idea how I might get the arrow to be in the middle of the box? Link to comment
tuanphan Posted December 1, 2022 Share Posted December 1, 2022 On 11/29/2022 at 9:08 AM, catherineamesbury said: Any idea how I might get the arrow to be in the middle of the box? Use this CSS .ProductItem-gallery-carousel-controls .product-item-gallery-carousel-control.ProductItem-gallery-prev:after { position: relative; left: 10px; } .ProductItem-gallery-carousel-controls .product-item-gallery-carousel-control.ProductItem-gallery-next:after { position: relative; right: 10px; } catherineamesbury 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care 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