Stefik Posted May 23 Posted May 23 (edited) I am looking to place the accordion right below the product description on both mobile and desktop. https://www.tastebytiff.com/order/p/pesto-steak Haven't been able to figure this out! Edited May 23 by Stefik Beyondspace 1
Beyondspace Posted May 24 Posted May 24 On 5/24/2024 at 12:20 AM, Stefik said: I am looking to place the accordion right below the product description on both mobile and desktop. https://www.tastebytiff.com/order/p/pesto-steak Haven't been able to figure this out! This is the best layout I can achieve to make with basic Css code .ProductItem-details-checkout { display: flex !important; } .ProductItem-product-price { order: 0; } .tweak-product-basic-item-description-position-below-price .ProductItem-details .ProductItem-details-excerpt-below-price { order: 1; } .ProductItem-quantity-add-to-cart { order: 2; } .ProductItem-details .product-variants { order: 3; } .tweak-product-basic-item-add-to-cart-standalone .ProductItem .ProductItem-quantity-add-to-cart{ display: flex; flex-wrap: wrap; } .ProductItem-quantity-add-to-cart .product-quantity-input{ width: 100%; } .ProductItem-quantity-add-to-cart .accordion-block { width: 100%; } Demo: The javascript which is only available on the business plan or above of Squarespace, can help you set the right position as needed. Which one are you in? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
Stefik Posted May 25 Author Posted May 25 Hey! Thank you so much. The code works perfectly. Only thing is, is there a way to adjust the spacing between the accordion and the description? That little gap between them? I'm on a paid plan so all is good and was able to use it! 😁
Stefik Posted May 25 Author Posted May 25 Is there a way to arrange the order by having the product variants sit right under the accordion?
tuanphan Posted May 26 Posted May 26 17 hours ago, Stefik said: Hey! Thank you so much. The code works perfectly. Only thing is, is there a way to adjust the spacing between the accordion and the description? That little gap between them? I'm on a paid plan so all is good and was able to use it! 😁 Use this CSS code under .tweak-product-basic-item-description-position-below-price .ProductItem-details .ProductItem-details-excerpt-below-price { margin-bottom: 0px !important; } 17 hours ago, Stefik said: Is there a way to arrange the order by having the product variants sit right under the accordion? Use this code to bottom of Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> $(document).ready(function(){ $('.ProductItem-details .product-variants').insertAfter('.accordion-block'); }); </script> <script> .ProductItem-details .product-variants { order: 2 !important; } </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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment