Braydenn Posted December 29, 2021 Share Posted December 29, 2021 I have an image optimized for mobile viewing, however I would like it removed for desktop view. I've attached the image of the section I'd like removed. Could anyone please help me? Thank you. Link to comment
Beyondspace Posted December 31, 2021 Share Posted December 31, 2021 On 12/29/2021 at 10:18 PM, Braydenn said: I have an image optimized for mobile viewing, however I would like it removed for desktop view. I've attached the image of the section I'd like removed. Could anyone please help me? Thank you. I think we can implement the Css code with the media query for desktop: @media only screen and (min-width: 1025px) { /*your sectionId { display:none; }*/ } Hope that it make sense 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
Braydenn Posted January 1, 2022 Author Share Posted January 1, 2022 Hi! Thanks for replying to me. However, after adding the code and the section ID into the code, it didn't work. The image is still visible on Desktop view. Here's the exact code I've used: @media only screen and (min-width: 1025px) { /61cdc280503cad145085f1c1 { display:none; }*/ } Please help me to check if I've made a mistake. Thank you so so much, have a happy New Year!! Link to comment
creedon Posted January 1, 2022 Share Posted January 1, 2022 It should be something like... @media only screen and ( min-width : 1025px ) { [data-section-id="61cdc280503cad145085f1c1"] { display : none; } } Without being able to see your site we are unable to confirm the code works. Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support! 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