TomMesquitta Posted September 21, 2022 Posted September 21, 2022 Site URL: https://disc-snail-sk6j.squarespace.com Site URL:https://disc-snail-sk6j.squarespace.com Password: Fevroniapass Hi, When selecting a product from my shop and viewing the information in desktop view it works perfectly. However when I switch the view to mobile then the order is completely wrong with the main body copy appearing after the 'add to cart' button?! Is there a way to reorder the information for the mobile view? I would like the mobile view to be ordered like so: Product title Body copy Images Drop down menus Add to cart I'd also like this to be a site wide change across the current x24 products and any future products added to the site. Thanks, Tom.
Solution tuanphan Posted September 23, 2022 Solution Posted September 23, 2022 Add to Settings > Advanced > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> jQuery(document).ready(function($){ if (jQuery(window).width() < 767) { $('.ProductItem-gallery-slides').insertAfter('.ProductItem-details-excerpt'); } }); </script> <style> @media screen and (max-width:767px) { .ProductItem-details-excerpt { order: 2 !important; } .ProductItem-details-checkout { order: 2 !important; } .ProductItem-gallery-slides { order: 3; } .ProductItem-details .product-variants { order: 4; } .product-quantity-input { order: 5 !important; } .sqs-add-to-cart-button-wrapper { order: 6 !important; } } </style> Then check it again on real mobile 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!)
TomMesquitta Posted September 23, 2022 Author Posted September 23, 2022 Great that worked perfectly. Thanks Tuanphan!
TomMesquitta Posted September 27, 2022 Author Posted September 27, 2022 Hi Tuanphan, Sorry, I missed your comment outside the code box. Whilst the above solved the problem on the desktop browser in mobile mode... the images seem to disappear now when viewed on a real mobile. The site is now linked to the primary domain: Site:https://www.fevronia.net Password: Fevroniapass
tuanphan Posted September 28, 2022 Posted September 28, 2022 20 hours ago, TomMesquitta said: Hi Tuanphan, Sorry, I missed your comment outside the code box. Whilst the above solved the problem on the desktop browser in mobile mode... the images seem to disappear now when viewed on a real mobile. The site is now linked to the primary domain: Site:https://www.fevronia.net Password: Fevroniapass Can you take a screenshot on real mobile? 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!)
TomMesquitta Posted September 28, 2022 Author Posted September 28, 2022 Sure no problem. As you can see there is a lot of white space where the images should be.
TomMesquitta Posted October 7, 2022 Author Posted October 7, 2022 Hi Tuanphan, did you get a chance to review this at all? Many thanks in advance!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment