Jump to content

How can I add 2 products per row on mobile view on my HOME PAGE (in the shop page is working perfectly)?

Recommended Posts

Site URL: https://www.sagatools.net/

Hello.

 

How can I add 2 products per row on mobile view on my HOME PAGE (in the shop page is working perfectly)? 

I have some products added on my home page and I want to have it 2 per row (not a full product width), in the shop page I have the 2 product row addes with the following code:

 

<style>
  @media screen and (max-width:767px) {
.products.collection-content-wrapper .list-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    grid-column-gap: 5px;
    grid-row-gap: 5px;
}
}
</style>

 I have tryend everything with 0 result on my home page. Need Help family.

 

thanks everybody

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

43 minutes ago, straperloagency said:

Site URL: https://www.sagatools.net/

Hello.

 

How can I add 2 products per row on mobile view on my HOME PAGE (in the shop page is working perfectly)? 

I have some products added on my home page and I want to have it 2 per row (not a full product width), in the shop page I have the 2 product row addes with the following code:

 

<style>
  @media screen and (max-width:767px) {
.products.collection-content-wrapper .list-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    grid-column-gap: 5px;
    grid-row-gap: 5px;
}
}
</style>

 I have tryend everything with 0 result on my home page. Need Help family.

 

thanks everybody

You can try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  /*2 column product List*/
  section[data-section-id="60e016fd47d3e87865504f76"] .content > .sqs-layout > .row:last-child {
    display: flex;
    flex-wrap: wrap;
  }
  section[data-section-id="60e016fd47d3e87865504f76"]  .span-3 {
    width: 50% !important;

  } 
}

Let me know how it works on your page

Support me by pressing 👍 if this useful for you

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

My testing result

image.png.34c1986475ee66aff05f78536956f224.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

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.