Jesserka Posted November 20, 2021 Share Posted November 20, 2021 Site URL: https://www.tessawegert.com/about Help! My client is hoping I can fix the split-second in which the header image focal point takes to load. (It shows the focal point as dead-centre before shifting to the chosen location). I posted that question but didn't get any responses so I assume it's not an easy fix, but is it possible to maybe have one header image for desktop and one for mobile? I got an assist doing this on the homepage, but need help doing it on the "about" and "contact" pages. https://www.tessawegert.com/about https://www.tessawegert.com/contact Thanks in advance! Link to comment
tuanphan Posted November 23, 2021 Share Posted November 23, 2021 On 11/21/2021 at 2:47 AM, Jesserka said: Site URL: https://www.tessawegert.com/about Help! My client is hoping I can fix the split-second in which the header image focal point takes to load. (It shows the focal point as dead-centre before shifting to the chosen location). I posted that question but didn't get any responses so I assume it's not an easy fix, but is it possible to maybe have one header image for desktop and one for mobile? I got an assist doing this on the homepage, but need help doing it on the "about" and "contact" pages. https://www.tessawegert.com/about https://www.tessawegert.com/contact Thanks in advance! Hi, You can add 2 sections with different image, then we will give the code to show 1 on desktop, show 1 on 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
millenniumVR Posted February 11, 2022 Share Posted February 11, 2022 On 11/23/2021 at 5:14 AM, tuanphan said: Hi, You can add 2 sections with different image, then we will give the code to show 1 on desktop, show 1 on mobile Hi, tuanphan. Did you ever post that CSS code anywhere to show 1 on desktop and a different one on mobile? Link to comment
Caroline_Smith Posted February 11, 2022 Share Posted February 11, 2022 @millenniumVR Hi! Here is some code that I have used to achieve this in the past. You will need to know how to find your data section IDs so that you can substitute them in the CSS code snippet. <style> /* Mobile Screen Size */ @media(min-width: 768px) { [data-section-id='{MOBILE_ID_GOES_HERE}'] { display: none; } } /* Desktop Screen Size */ @media(max-width: 768px) { [data-section-id='{MOBILE_ID_GOES_HERE}'] { display: block; } [data-section-id='{DESKTOP_ID_GOES_HERE}'] { display: none; } } </style> tuanphan 1 Feel free to email me with any customization inquiries or questions you may have! Free Squarespace Resources: DevTools Minicourse, 11-Step Guide to Improve Custom CSS, Free Product/Pricing Comparison Table Generator Link to comment
tuanphan Posted February 14, 2022 Share Posted February 14, 2022 @millenniumVR Use @Caroline_Smith code & this tool to find id. https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment