4 category in MOBILE for row instead of 3

Solved

4 category in MOBILE for row instead of 3

ellisbosisio
Excursionist
31 0 0

Hi my site is https://www.vaigustando.it/collections/vini

I need to show ON MOBILE all the 4 items on a single row but the theme (Empire) support max 3.

How to fix it? Thank you in advace for supporting me. here a picture to better explain.

Screenshot 2024-09-12 alle 10.41.45.png

Accepted Solution (1)

AnneLuo
Shopify Partner
948 176 202

This is an accepted solution.

You can try this code by following these steps:
Step 1: Go to the online store ->Theme ->Edit Code.
Step 2: Find the theme.liquid file and add the following code above the </head> tag

<style>
@media only screen and (max-width: 860px) {
#shopify-section-template--23462052004183__dynamic_collection_list_zRXnYk .collection-list__content {
    grid-template-columns: repeat(4, minmax(auto, 1fr)) !important;
}
#shopify-section-template--23462052004183__dynamic_collection_list_zRXnYk .collection-list__container {
    max-width: 90% !important;
}
}

</style>

Result:

AnneLuo_0-1726131065796.png


Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me   

Buy Me A Coffee

View solution in original post

Replies 3 (3)

AnneLuo
Shopify Partner
948 176 202

This is an accepted solution.

You can try this code by following these steps:
Step 1: Go to the online store ->Theme ->Edit Code.
Step 2: Find the theme.liquid file and add the following code above the </head> tag

<style>
@media only screen and (max-width: 860px) {
#shopify-section-template--23462052004183__dynamic_collection_list_zRXnYk .collection-list__content {
    grid-template-columns: repeat(4, minmax(auto, 1fr)) !important;
}
#shopify-section-template--23462052004183__dynamic_collection_list_zRXnYk .collection-list__container {
    max-width: 90% !important;
}
}

</style>

Result:

AnneLuo_0-1726131065796.png


Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me   

Buy Me A Coffee

ellisbosisio
Excursionist
31 0 0

It works perfectly! thank you so much

topnewyork
Globetrotter
633 114 134

Hi @ellisbosisio ,


1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>

 

<style>
@media only screen and (max-width: 860px) {
#shopify-section-template--23462052004183__dynamic_collection_list_zRXnYk .collection-list__content {
    grid-template-columns: repeat(4, minmax(auto, 1fr)) !important;
}
#shopify-section-template--23462052004183__dynamic_collection_list_zRXnYk .collection-list__container {
    max-width: 90% !important;
}
}

</style>

topnewyork_0-1726131145682.png

 

If my reply is helpful, kindly click like and mark it as an accepted solution.

Thanks!

Need a Shopify developer?
Hire us at Top New York Web Design
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel