Jump to content

The custom CSS works only when I go back to the custom CSS menu

Go to solution Solved by tuanphan,

Recommended Posts

I made some css coding for my products to appear side by side on squarespace mobile, it worked but I've noticed that upon reloading to the site, the custom CSS works only when I go back to the custom CSS menu. I also check my site on my mobile and the code didn't work. I'm new in using squarespace can someone please help me.  Attached is my screenshot of the code.

Thank you in advance for your time and energy.

 

 

 

squarespace.PNG

Link to comment
  • Solution

Use this code instead

/* Product 2 columns mobile */
@media screen and (max-width:767px) {
    .products.collection-content-wrapper .list-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-column-gap: 10px;
}
}

 

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
19 hours ago, tuanphan said:

Use this code instead

/* Product 2 columns mobile */
@media screen and (max-width:767px) {
    .products.collection-content-wrapper .list-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-column-gap: 10px;
}
}

 

Thank you so much! I've been looking for this solution everywhere! 

Do you also know how to limit the quantity entered on a specific product? I want to place an order limit for one of my products. Thanks in advance!!

Link to comment
On 3/20/2023 at 11:01 AM, Riq said:

Thank you so much! I've been looking for this solution everywhere! 

Do you also know how to limit the quantity entered on a specific product? I want to place an order limit for one of my products. Thanks in advance!!

I guess possible with code. However customer still able to change quantity on Cart Page & Checkout Page

And we can't use code ton Checkout Page.

You can put an alternative message line, letting customers know there is a limited quantity on that product

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

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.