Jump to content

Adjust the Mobile Breakpoint of a section using Section ID

Recommended Posts

  • Replies 5
  • Views 338
  • Created
  • Last Reply

Top Posters In This Topic

4 hours ago, BennyCorrigan said:

Hi,

I would like certain sections on my homepage to go to the mobile version at wider break points than they currently do. For example on the homepage I would like the Meet the Team section to break to the mobile version earlier. Can any help me with the code I need to use to make this happen. 

Thank You!

we can use media query and select section id to set the right style on mobile

@media only screen and (max-width: 767px) {
  // style on mobile
}

you can use the following extension to get the right section Id: Squarespace ID Finder

How to get section Id: https://recordit.co/Aj9vXw6rfY

If you need help, you can share your URL site so we can take a look

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 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
On 11/10/2022 at 10:30 PM, BennyCorrigan said:

Hi,

Thank you for the reply, the website URL is https://dentleslieville.ca/ . I would like the Top rated Dental team section to break to mobile view sooner when desktop screen is adjusted,

Thanks

Add to Design > Custom CSS

/* top rated dental */
@media screen and (max-width:1000px) {
.user-items-list-item-container[data-section-id="6287d5a3bab7fb4cfc86798f"] {
    grid-template-columns: repeat(1,1fr) !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 11/16/2022 at 4:53 AM, BennyCorrigan said:

Hi Tuanphan,

 

I tried that code but it doesn't seem to have worked. When I reduce the screen width it still displays in columns. See screen shot attached,

 

Thanks,Benny

 

 

 

Screen Shot 2022-11-15 at 4.51.44 PM.png

That code works with screen under 1000px, you can check on real device or adjust number 1000

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.