Jump to content

how to stack product blocks on home page in rows of two on mobile site

Recommended Posts

Site URL: https://www.joshuajohnsonclothes.com/

Im wondering if there is anyway that I would be able to stack product blocks on my home page in rows of two instead of one on top of the other on mobile. Im also having a problem with my grid masonry being centered in mobile view. I put in some code to get it to stack on top of each other but it seems it may have caused it to be slightly off center. Any help is greatly appreciated.  My cite password is Millydog!8

Link to comment
  • Replies 4
  • Views 225
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

15 hours ago, jjstapp2323 said:

Site URL: https://www.joshuajohnsonclothes.com/

Im wondering if there is anyway that I would be able to stack product blocks on my home page in rows of two instead of one on top of the other on mobile. Im also having a problem with my grid masonry being centered in mobile view. I put in some code to get it to stack on top of each other but it seems it may have caused it to be slightly off center. Any help is greatly appreciated.  My cite password is Millydog!8

Is it what you mean with the masonry gallery?

image.png.c6d95ef0b99551b1e56d85ff3fbcf719.png

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

@jjstapp2323 Add to Design > Custom CSS

/* Mobile Homepage Products */
@media screen and (max-width:767px) {
div#page-section-615f7298b3658e4fa2ac9fd6 .span-3 {
    width: 50% !important;
    float: left !important;
}

div#page-section-615f7298b3658e4fa2ac9fd6 .span-3:nth-child(2n+1) {
    clear: left;
}
}

 

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
45 minutes ago, tuanphan said:

@jjstapp2323 Add to Design > Custom CSS

/* Mobile Homepage Products */
@media screen and (max-width:767px) {
div#page-section-615f7298b3658e4fa2ac9fd6 .span-3 {
    width: 50% !important;
    float: left !important;
}

div#page-section-615f7298b3658e4fa2ac9fd6 .span-3:nth-child(2n+1) {
    clear: left;
}
}

 

thank you that worked!!

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.