Cyperpunk-girl-333 Posted January 16, 2023 Share Posted January 16, 2023 hi I'm trying to figure out why the above code wont move my accordion into the product description on page https://enchantanddelight.com.au/shop-enchant-and-delight/p/purple-fluorite-specimen?rq=Purple Fluorite Cluster I would like the price to sit above the buy now button Link to comment
Beyondspace Posted January 16, 2023 Share Posted January 16, 2023 11 hours ago, Cyperpunk-girl-333 said: hi I'm trying to figure out why the above code wont move my accordion into the product description on page https://enchantanddelight.com.au/shop-enchant-and-delight/p/purple-fluorite-specimen?rq=Purple Fluorite Cluster I would like the price to sit above the buy now button Which code are you using to moving it up to product description? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Cyperpunk-girl-333 Posted January 16, 2023 Author Share Posted January 16, 2023 (edited) <script> (function(){ var accordion = document.querySelector('.ProductItem-additional .accordion-block'); var cartButton = document.querySelector('.sqs-add-to-cart-button-wrapper'); if(accordion && cartButton) { // Remove accordion from current position. accordion.parentNode.removeChild(accordion); // Add accordion before the cart button. cartButton.after(accordion); } })() </script> I'd like the price to sit below the accordion and above above the buy now button? Is this possible with more code? Also the Accordion disappears in mobile view? How do i set it up so it behaves the same way on desktop as it does on mobile? Edited January 16, 2023 by Cyperpunk-girl-333 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