ECI Posted January 31, 2021 Share Posted January 31, 2021 Site URL: https://elancloe.com/ Hello! I'm hoping someone can help with this: I had a code that would replace the image block on my landing page with an alternate image when you viewed on mobile, but I had to make changes to it and now it won't work and it looks like this: Could someone help me with the code to make the below attached image appear when viewing my site on mobile, while keeping the original image the way it is on the desktop? Thank you so much in advance for your help! Link to comment
IXStudio Posted January 31, 2021 Share Posted January 31, 2021 Hi, Please contact me via DM to check it for you! Best, Leopold Ninja Kit Extension: Upgrade your Squarespace website without coding.YouTube Preview - FREE DOWNLOAD Link to comment
Beyondspace Posted February 1, 2021 Share Posted February 1, 2021 On 1/31/2021 at 9:11 AM, PBP said: Site URL: https://elancloe.com/ Hello! I'm hoping someone can help with this: I had a code that would replace the image block on my landing page with an alternate image when you viewed on mobile, but I had to make changes to it and now it won't work and it looks like this: Could someone help me with the code to make the below attached image appear when viewing my site on mobile, while keeping the original image the way it is on the desktop? Thank you so much in advance for your help! Design is switch to background image, so you use this, remember to replace the image url @media screen and (max-width: 767px) { section[data-section-id="60158a57b6ec6f5af0b86d91"] .section-background img { opacity: 0; } section[data-section-id="60158a57b6ec6f5af0b86d91"] .section-background { background: url('https://content.invisioncic.com/p289038/monthly_2021_01/1971123509_ElanCloeBanner4mobileComplete.thumb.png.f19d42b7a48c48db7cd9376a9373f3c5.png'); background-size: cover; background-repeat: no-reapeat; } } ECI 1 Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you Link to comment
Solution Beyondspace Posted February 1, 2021 Solution Share Posted February 1, 2021 Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you Link to comment
ECI Posted February 1, 2021 Author Share Posted February 1, 2021 Perfect! Thank you! Beyondspace 1 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