Toerag Posted June 2, 2022 Share Posted June 2, 2022 Site URL: http://ralop-srabwot.squarespace.com Hi, I'm using code injection to move an accordian (in additional info) up to the buy button, the problem is it only shows on desktop not on mobile preview. Any ideas? Code (sitewide code injection): <!-- Move accordian up on product pages --> <script> (function(){ var accordion = document.querySelector('.ProductItem-additional'); 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.before(accordion); } })() </script> Muchas gracias 🙂 Link to comment
tuanphan Posted June 3, 2022 Share Posted June 3, 2022 Your site is private. Can you setup an access password & share link to a product where you use accordion? We can check easier 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
Toerag Posted June 4, 2022 Author Share Posted June 4, 2022 https://ralop-srabwot.squarespace.com/shop/p/thule-wing-bar-edge-black pwrd: pencil (on the right below product description, fine on desktop but goes awol on mobile) Thank you! :) Link to comment
tuanphan Posted June 10, 2022 Share Posted June 10, 2022 Sorry for delay. Just had a long trip. I see mobile has a different structure. Can you remove above code? We will give a new code 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
Toerag Posted June 14, 2022 Author Share Posted June 14, 2022 Quote Yes, I can change it - can you provide a better one? 🙂 Link to comment
tuanphan Posted June 15, 2022 Share Posted June 15, 2022 19 hours ago, Toerag said: Hi, Sorry. Forgot your question Which position you want accordion appears on desktop - mobile? 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
Toerag Posted June 15, 2022 Author Share Posted June 15, 2022 Quote Yes, I can change it - can you provide a better one? 🙂 The problem is it disappears on mobile view, the position is fine on desktop, similar position on mobile would be good. Link to comment
Toerag Posted June 15, 2022 Author Share Posted June 15, 2022 Also, is it correct you can't have a page as the top level of a category/folder? (Only a category slug that redirects to a page?) If you see my main navigation, the first link is to a folder (https://ralop-srabwot.squarespace.com/towbars-folder/) but I want it to be a page (https://ralop-srabwot.squarespace.com/towbars). But I can't see if this is possible. Thanks again. 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