kam_2kbk Posted February 3, 2022 Share Posted February 3, 2022 (edited) Site URL: https://www.reklaimyours.com/browser-test hey guys, so for the landing page, i was thinking to rearrange the order of text and image for 2nd section. Currently in mobile it shows text > image Image > Text Text > image Thanks! Edited February 3, 2022 by kam_2kbk Link to comment
Beyondspace Posted February 7, 2022 Share Posted February 7, 2022 On 2/3/2022 at 1:42 PM, kam_2kbk said: Site URL: https://www.reklaimyours.com/browser-test hey guys, so for the landing page, i was thinking to rearrange the order of text and image for 2nd section. Currently in mobile it shows text > image Image > Text Text > image Thanks! Try adding to Home > Settings > Advanced > Code injection, choose footer <script> (function() { window.addEventListener('DOMContentLoaded', () => { const configId = 'section[data-section-id="61f1f6acb09f6979e06a4e81"]'; const sectionConfig = document.querySelector(configId); const nextSectionConfig = document.querySelector(`${configId} + section`); if(sectionConfig && nextSectionConfig) { const copyConfigSection = nextSectionConfig.cloneNode(true); copyConfigSection.classList.add('mobile-section'); sectionConfig.insertAdjacentElement('beforeBegin',copyConfigSection); } }); })() </script> <style> @media only screen and (min-width: 768px) { .mobile-section { display: none; } } @media only screen and (max-width: 767px) { section[data-section-id="61f1f6acb09f6979e06a4e81"] + section { display: none; } } <style> Let me know how it works on your site Support me by pressing 👍 if this useful for you BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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
Beyondspace Posted February 7, 2022 Share Posted February 7, 2022 My testing tuanphan 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment