Jump to content

How to have 2 columns on the product page on mobile?

Go to solution Solved by paul2009,

Recommended Posts

Add to Home > Design > Custom CSS

@media screen and (max-width:767px) {
.products .list-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    display: grid;
    grid-column-gap: 10px;
    grid-row-gap: 20px;
}
}

 

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
14 hours ago, RoryThomson said:

@tuanphan

I have the same desire (two columns in mobile view for all 4 stores on my site) as brunnatorino but your code does not work for my site. Could you perhaps point me in the right direction? 

Site: www.whiskycaskpens.com 

Your Custom CSS Box has syntax error so the above code won't work unless fix syntax. Can you paste all CSS here?

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
  • 6 months later...
On 10/18/2020 at 4:08 PM, fhillm said:

Hey 

The code doesn't work for me but I don't have any other code in my custom css box. Do you possibly know what the problem might be?

https://www.nyane.co/shop

i see you solved. Do you still need help?

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
  • 3 weeks later...
On 4/10/2020 at 1:59 PM, tuanphan said:

Add to Home > Design > Custom CSS


@media screen and (max-width:767px) {
.products .list-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    display: grid;
    grid-column-gap: 10px;
    grid-row-gap: 20px;
}
}

 

I have tried to use this on my site, but it doesn't seem to work when I posted in the custom CSS section. Am I missing something?

My site is: https://retroralph.uk/

Link to comment
On 11/7/2020 at 12:03 AM, yourfluf said:

I have tried to use this on my site, but it doesn't seem to work when I posted in the custom CSS section. Am I missing something?

My site is: https://retroralph.uk/

Please try again. I just test & it works here.

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
20 hours ago, yourfluf said:

Thank you!! 

How can I change the padding to match the grid below?

Use this code

/* home products */
@media screen and (max-width:767px) {
div#page-section-5f29775108f9fc5eade7bb77>.row>.span-3 {
    width: 50% !important;
    float: left !important;
}
div#page-section-5f29775108f9fc5eade7bb77 .product-block {
    padding: 5px !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
  • 1 month later...
  • 2 months later...

Hi! 

Sorry, it isn't working on mine :( Can I ask for some advice?

I want to have 2 columns of products on the mobile version while exploring the shop.

Website: www.janeirocollective.com

Pass: vemverao21

(still private, preparing for launching)

Link to comment
On 3/29/2021 at 6:01 AM, Janeiro said:

Hi! 

Sorry, it isn't working on mine :( Can I ask for some advice?

I want to have 2 columns of products on the mobile version while exploring the shop.

Website: www.janeirocollective.com

Pass: vemverao21

(still private, preparing for launching)

It looks like you solved with this code?

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

It looks like you solved with this code?


@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
    }
}

 

Indeed! Thank you very very much

Link to comment
  • 2 months later...
On 3/30/2021 at 7:24 PM, tuanphan said:

It looks like you solved with this code?



@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
    }
}

 

will this same code work for me if I want 3 or 4 columns while browsing my shop on mobile? Does this work with both 7.1 and 7.0 templates or only 7.0 templates?

Link to comment
6 hours ago, BULBASTORE said:

will this same code work for me if I want 3 or 4 columns while browsing my shop on mobile? Does this work with both 7.1 and 7.0 templates or only 7.0 templates?

7.1. - 7.0 needs different code

to make 3 or 4 columns, just change number 2 to 3 or 4

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

7.1. - 7.0 needs different code

to make 3 or 4 columns, just change number 2 to 3 or 4

Any chance you could take a peak at my site and help me figure out how to make it 3 or 4 columns on mobile devices, I'd like to play with it and see which I like better. I'm using Brine which is 7.0. I've attempted numerous different code that I found you post for similar issues, but none of them seemed to do anything. Assuming they were for specific pages and sites, not universally accepted.

Link to comment
16 hours ago, BULBASTORE said:

Any chance you could take a peak at my site and help me figure out how to make it 3 or 4 columns on mobile devices, I'd like to play with it and see which I like better. I'm using Brine which is 7.0. I've attempted numerous different code that I found you post for similar issues, but none of them seemed to do anything. Assuming they were for specific pages and sites, not universally accepted.

Can you share your site url?

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
  • 9 months later...
On 3/17/2022 at 9:27 PM, Tinap358 said:

Hi, 

I was researching how to change the number of columns to 3, on only one sales page. I'm using version 7.0, Brine template.

I noticed this question posted here. Is it possible for you to help me with the code for this page:

https://www.ijorere.com/ijorere-2-0

Thank you so much if you can.

 

Add to Design > Custom CSS

/* Ijorere 20 mobile */
@media screen and (max-width:640px) {
body#collection-6233165380b20b5199526d0f {
section.ProductList div.ProductList-item.hentry.image-is-loaded {
    width: calc(33.3333% - 20px) !important;
    clear: none !important;
}
div.ProductList-item:nth-child(3n+1) {
    clear: left !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

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.