kam_2kbk Posted February 3, 2022 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
Beyondspace Posted February 7, 2022 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 (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
Beyondspace Posted February 7, 2022 Posted February 7, 2022 My testing tuanphan 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment