Grid theme - multiple columns on mobile view

Solved

Grid theme - multiple columns on mobile view

cindysmk
Tourist
4 0 2

Hi there, 

I'm using the Grid theme and would like my products to appear in two columns on mobile view. Currently it's a long list of a single column which isn't very user-friendly. Please help, thank you so much. 

 

https://skinjunction.au 

 

 

Accepted Solution (1)

BSS-TekLabs
Shopify Partner
2401 695 835

This is an accepted solution.

Hi @cindysmk,

Here are the steps you can follow:

1, Navigate to Online Store > Themes > Edit Code.

2, Locate and open the theme.css (or base.css, custom.css) file.

3, Paste the code snippet provided below at the bottom of the file, then save your changes.

 

@media screen and (max-width: 539px) {
    .collection-products {
        /* background: yellow; */
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        height: 100% !important;
    }

    .collection-products .product-list-item {
        position: static !important;
    }
}

 

Here is the result

BSSTekLabs_0-1722132679186.png

We hope this assists in resolving the issue.

If you find our solution helpful, kindly consider Liking and Marking it as Accepted. Thank you!

 

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Replies 3 (3)

BSS-TekLabs
Shopify Partner
2401 695 835

- Here is the solution for you @cindysmk 
- Please follow these steps:

step.png

- Then find the base.css or theme.css file.
- Then add the following code at the end of the file and press 'Save' to save it.

@media (max-width: 769px) {
    .rows-of-4 .product-list-item{
        width: 50% !important;
    }
.collection-products.rows-of-4 {
display: grid !important;
    grid-template-columns: auto auto !important;
}
}

- Here is the result you will achieve:

BSSTekLabs_0-1722132109856.png

 

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

BSS-TekLabs
Shopify Partner
2401 695 835

This is an accepted solution.

Hi @cindysmk,

Here are the steps you can follow:

1, Navigate to Online Store > Themes > Edit Code.

2, Locate and open the theme.css (or base.css, custom.css) file.

3, Paste the code snippet provided below at the bottom of the file, then save your changes.

 

@media screen and (max-width: 539px) {
    .collection-products {
        /* background: yellow; */
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        height: 100% !important;
    }

    .collection-products .product-list-item {
        position: static !important;
    }
}

 

Here is the result

BSSTekLabs_0-1722132679186.png

We hope this assists in resolving the issue.

If you find our solution helpful, kindly consider Liking and Marking it as Accepted. Thank you!

 

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
cindysmk
Tourist
4 0 2

Amazing, this worked. Thank you so much!