oliverlittlewood Posted November 22, 2023 Share Posted November 22, 2023 Hi it would be great to get some help on moving 2 icons (that are currently arranged in a gallery in the additional info part of the product page) under the main product image. Also would like to make these smaller and sit under the product image in mobile version also. URL: https://round-rhubarb-hrce.squarespace.com PW: hello1234 Link to comment
tuanphan Posted November 24, 2023 Share Posted November 24, 2023 You can add this code to Website > Website Tools > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> jQuery(document).ready(function($){ $('div#block-5f21465b141b11697cc4').insertAfter('.ProductItem-gallery-slides'); }) </script> 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
oliverlittlewood Posted November 24, 2023 Author Share Posted November 24, 2023 (edited) Thanks so much for your response. Although it has moved the icons next to the image and shrunk my product image? And on mobile its completely replaced the product image. (see image) Is there any way to move these directly below? Edited November 24, 2023 by oliverlittlewood edit Link to comment
tuanphan Posted November 26, 2023 Share Posted November 26, 2023 #1. Add this code under <style> section.ProductItem-gallery { flex-direction: column !important; } </style> #2. You can remove the code, I will check it again 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
oliverlittlewood Posted November 26, 2023 Author Share Posted November 26, 2023 Yeah with the added code it has replaced the product image. Link to comment
tuanphan Posted November 28, 2023 Share Posted November 28, 2023 https://round-rhubarb-hrce.squarespace.com/shop/p/original/p/ns-szanp Use this new code <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> jQuery(document).ready(function($){ $('div#block-5f21465b141b11697cc4').insertAfter('.ProductItem-gallery-slides'); }) </script> <style> .ProductItem-gallery-slides { width: 100% !important; } section.ProductItem-gallery { flex-direction: column; } </style> 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
oliverlittlewood Posted November 28, 2023 Author Share Posted November 28, 2023 (edited) This is perfect and exactly what I'm looking for! Thanks so much, absolute life saver! Final ask promise, is there a way to make them smaller? Edited November 28, 2023 by oliverlittlewood edit Link to comment
tuanphan Posted November 30, 2023 Share Posted November 30, 2023 On 11/29/2023 at 6:34 AM, oliverlittlewood said: This is perfect and exactly what I'm looking for! Thanks so much, absolute life saver! Final ask promise, is there a way to make them smaller? Add this under <style> section.ProductItem-gallery .gallery-block img { max-width: 150px; height: auto !important; } </style> 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
oliverlittlewood Posted December 1, 2023 Author Share Posted December 1, 2023 It's not showing correctly on mobile? How can we get this displaying as it does for desktop? Link to comment
tuanphan Posted December 3, 2023 Share Posted December 3, 2023 On 12/1/2023 at 6:05 PM, oliverlittlewood said: It's not showing correctly on mobile? How can we get this displaying as it does for desktop? You mean make 2 images side by side? 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
oliverlittlewood Posted December 3, 2023 Author Share Posted December 3, 2023 6 hours ago, tuanphan said: You mean make 2 images side by side? Exactly yep 🙂 Link to comment
tuanphan Posted December 4, 2023 Share Posted December 4, 2023 21 hours ago, oliverlittlewood said: Exactly yep 🙂 The site is expired. You can access this link to extend it for free then let me know, I will check again 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
oliverlittlewood Posted December 4, 2023 Author Share Posted December 4, 2023 Extended, thanks so much! Link to comment
tuanphan Posted December 6, 2023 Share Posted December 6, 2023 You have this code in CSS box, it caused problem add this to Code Injection > Footer to override it <style> @media screen and (max-width:767px) { [class*="type-products"] .gallery-block .slide { height: auto !important; margin: initial !important; width: 45% !important; } [class*="type-products"] .gallery-block .sqs-gallery { display: flex !important; justify-content: center; align-items: center; } section.ProductItem-gallery .gallery-block img { max-width: unset !important; margin: initial !important; width: 100% !important; height: auto !important; } } </style> 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
oliverlittlewood Posted December 6, 2023 Author Share Posted December 6, 2023 Great thankyou! Is there a way to fix the icons below on mobile on the product page. These were aligned vertically and bigger before. This issue is just on mobile. I think the code you referenced above in my CS was for this gallery Link to comment
tuanphan Posted December 8, 2023 Share Posted December 8, 2023 On 12/6/2023 at 7:52 PM, tuanphan said: You have this code in CSS box, it caused problem add this to Code Injection > Footer to override it <style> @media screen and (max-width:767px) { [class*="type-products"] .gallery-block .slide { height: auto !important; margin: initial !important; width: 45% !important; } [class*="type-products"] .gallery-block .sqs-gallery { display: flex !important; justify-content: center; align-items: center; } section.ProductItem-gallery .gallery-block img { max-width: unset !important; margin: initial !important; width: 100% !important; height: auto !important; } } </style> Change to this new code <style> @media screen and (max-width:767px) { [class*="type-products"] section.ProductItem-gallery .gallery-block .slide { height: auto !important; margin: initial !important; width: 45% !important; } [class*="type-products"] section.ProductItem-gallery .gallery-block .sqs-gallery { display: flex !important; justify-content: center; align-items: center; } section.ProductItem-gallery .gallery-block img { max-width: unset !important; margin: initial !important; width: 100% !important; height: auto !important; } } </style> 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
oliverlittlewood Posted December 9, 2023 Author Share Posted December 9, 2023 Amazing thank you. I decreased the width to 60% to make the icons a bit smaller but doing this moves them from the centre. How can I get these back centred? Also is there a way to reduce the gap between the product name and icons? Link to comment
tuanphan Posted December 11, 2023 Share Posted December 11, 2023 https://round-rhubarb-hrce.squarespace.com/shop/p/original/p/ns-szanp Add this code under <style> @media screen and (max-width:767px) { section.ProductItem-gallery .gallery-block img { left: 50% !important; transform: translateX(-50%) !important; } section.ProductItem-gallery .gallery-block .margin-wrapper { margin: 0 !important; } section.ProductItem-gallery .gallery-block .content-fill { padding: unset !important; height: auto !important; } section.ProductItem-gallery .gallery-block { padding-bottom: 0px !important; } } </style> 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
oliverlittlewood Posted December 11, 2023 Author Share Posted December 11, 2023 Hmm it doesn't loom like the gap between the product name and icons has decreased. I think the website may expire but native smoothie.co.uk is up and has all the updated code in. . Link to comment
tuanphan Posted December 13, 2023 Share Posted December 13, 2023 I tested & it still works from my browser. Can you add & keep that code in Code Injection? I can check easier 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