Jump to content

Mobile 2 product grid - grid changes when adding to cart

Recommended Posts

Posted (edited)

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

Hello!

On mobile, when you click "add to cart" it will change the size of the product grid. This pushes other products off screen. 

I've made a copy of the site removing all CSS besides the product grid, but it still resizes whichever column the product was in. 

Any help would be greatly appreciated! Please let me know if more info is needed. I've attached a screen recording of it happening on the main site on mobile. 

Thank you,
Hannah

Edit to add, the code for the grid I'm using is:
            /* MOBILE PRODUCT GRID */
@media only screen and (max-width:767px) {
.products .list-grid {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.products .grid-item {
width: 48%;
}
}
@media screen and (max-width: 767px ) {
    .products.collection-content-wrapper .list-grid {
        display:grid !important;
        grid-template-columns: 1fr 1fr !important;
    }
    .products.collection-content-wrapper .grid-item {
        width: 100% !important;
    }
}

Edited by HannahReyenne
add more info
  • Replies 1
  • Views 72
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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.