Jump to content

7.0 - Is there a way to limit the number of products that show up on a products page, then have a button for "show more" or "next page"?

Recommended Posts

  • Replies 12
  • Views 1.4k
  • Created
  • Last Reply
  • 2 weeks later...

To make related products 2 items/row mobile, add to Custom CSS

@media screen and (max-width:767px) {
.ProductItem-relatedProducts-grid.clear {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
}
.ProductItem-relatedProducts-grid.clear img {
    width: 100% !important;
    height: auto !important;
    top: 0 !important;
    left: 0 !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
  • 2 weeks later...
  • 2 months later...
On 12/3/2020 at 3:45 AM, tuanphan said:

To make related products 2 items/row mobile, add to Custom CSS


@media screen and (max-width:767px) {
.ProductItem-relatedProducts-grid.clear {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
}
.ProductItem-relatedProducts-grid.clear img {
    width: 100% !important;
    height: auto !important;
    top: 0 !important;
    left: 0 !important;
}
}

 

Hi tuanphan - i tried this but it still has 4 related products per row.  See attached.  4 per row is good for desktop, 2 is good for mobile.  attached is the way it displays now which is not optimum 😛

Screenshot_20210309-102451_Chrome.jpg

Link to comment
  • 2 weeks later...
On 3/9/2021 at 10:29 PM, FitBar said:

Hi tuanphan - i tried this but it still has 4 related products per row.  See attached.  4 per row is good for desktop, 2 is good for mobile.  attached is the way it displays now which is not optimum 😛

Screenshot_20210309-102451_Chrome.jpg

Each site needs a different code. Can you share link to product in screenshot? We can help easier

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
  • 2 weeks later...
On 3/31/2021 at 11:08 PM, FitBar said:

Add to Design > Custom CSS > Then save & reload your site

/* related 2 products mobile */
@media screen and (max-width:700px) {
.relatedProducts div#productList {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-column-gap: 20px;
    grid-row-gap: 5px;
}
.relatedProducts div#productList a {
    width: 100% !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

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.