Jump to content

Hidding a sections/image blocks between mobile and computer browser

Recommended Posts

Site URL: https://www.chwoon.me/footwear

password: chwooned

 

Hello, I would like the index images to change depending on device: mobile or web browser.

I have tried using ccs to hide the lower index on browser and show on mobile using:

section #yui_3_17_2_1_1607780601651_292{
  display: none !important;
}

@media only screen and (max-width: 640px) {
section #yui_3_17_2_1_1607780601651_292{
    display: block !important;
  }
}

and:

div#yui_3_17_2_1_1607780601651_292{
  display: none !important;
}

@media only screen and (max-width: 640px) {
div#yui_3_17_2_1_1607780601651_292{
    display: block !important;
  }
}

But no luck.

 

Any help or advice would be greatly appreciated!

Thank you

Link to comment
  • Replies 2
  • Created
  • Last Reply
1 hour ago, CHWOON said:

Site URL: https://www.chwoon.me/footwear

password: chwooned

 

Hello, I would like the index images to change depending on device: mobile or web browser.

I have tried using ccs to hide the lower index on browser and show on mobile using:

section #yui_3_17_2_1_1607780601651_292{
  display: none !important;
}

@media only screen and (max-width: 640px) {
section #yui_3_17_2_1_1607780601651_292{
    display: block !important;
  }
}

and:

div#yui_3_17_2_1_1607780601651_292{
  display: none !important;
}

@media only screen and (max-width: 640px) {
div#yui_3_17_2_1_1607780601651_292{
    display: block !important;
  }
}

But no luck.

 

Any help or advice would be greatly appreciated!

Thank you

I suggest using this extension to get the id of the section/block

Squarespace ID Finder - Chrome Web Store (google.com)image.thumb.png.2270e8a15452e96c6295c60d301ab78e.png

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.