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

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, Keyword Highlighter
If 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

@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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.