Shopify themes, liquid, logos, and UX
Hello, I have 4 products selected per row and I only get 3, how can I fix it so that it fits in its place?
https://jaccomcollection.com/collections/t-shirt
Thank you so much
Solved! Go to the solution
This is an accepted solution.
Hi @ArnauP ,
I have reviewed your requirement, you just need to edit css script and the issue will be resolved. You can follow my instructions!
Step 1: Go to Admin -> Online store -> Theme > Edit code:
Step 2: Search for the file base.css. And add this code snippet to the end of the file.
@media screen and (min-width: 990px) {
.grid--4-col-desktop .grid__item {
max-width: calc(25% - var(--grid-desktop-horizontal-spacing)* 12) !important;
}
}
Step 3: Save and reload home page.
=>> The result:
I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.
Have a nice day sir!
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now I Donate Us Here!
This is an accepted solution.
- Here is the solution for you @ArnauP
- Please follow these steps:
- Then find the theme.liqid file.
- Then add the following code at the before tag </head> and press 'Save' to save it.
<style>
@media screen and (max-width: 749px) {
.grid--2-col-tablet-down .grid__item {
width: calc(47% - var(--grid-mobile-horizontal-spacing) / 2) !important;
}
}
@media screen and (min-width: 990px) {
.grid--4-col-desktop .grid__item {
width: calc(23% - var(--grid-desktop-horizontal-spacing)* 3 / 4) !important;
max-width: calc(25% - var(--grid-desktop-horizontal-spacing)* 3 / 4);
}
}
</style>
- Here is the result you will achieve:
- 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)
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month nowThis is an accepted solution.
Hi @ArnauP ,
I have reviewed your requirement, you just need to edit css script and the issue will be resolved. You can follow my instructions!
Step 1: Go to Admin -> Online store -> Theme > Edit code:
Step 2: Search for the file base.css. And add this code snippet to the end of the file.
@media screen and (min-width: 990px) {
.grid--4-col-desktop .grid__item {
max-width: calc(25% - var(--grid-desktop-horizontal-spacing)* 12) !important;
}
}
Step 3: Save and reload home page.
=>> The result:
I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.
Have a nice day sir!
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now I Donate Us Here!
It works, but in mobile sees like this:
Hi @ArnauP ,
We're happy to see that our suggestion helped you solve the issue.
Sr about my mistake on mobile.
You can add more css script in base.css, like below to fix this problem:
@media screen and (max-width: 768px) {
.grid--2-col-tablet-down .grid__item {
width: calc(47% - var(--grid-mobile-horizontal-spacing) / 2) !important;
}
}
Hope it helps.
😍It's such my honor to help you, bro.
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now I Donate Us Here!
This is an accepted solution.
- Here is the solution for you @ArnauP
- Please follow these steps:
- Then find the theme.liqid file.
- Then add the following code at the before tag </head> and press 'Save' to save it.
<style>
@media screen and (max-width: 749px) {
.grid--2-col-tablet-down .grid__item {
width: calc(47% - var(--grid-mobile-horizontal-spacing) / 2) !important;
}
}
@media screen and (min-width: 990px) {
.grid--4-col-desktop .grid__item {
width: calc(23% - var(--grid-desktop-horizontal-spacing)* 3 / 4) !important;
max-width: calc(25% - var(--grid-desktop-horizontal-spacing)* 3 / 4);
}
}
</style>
- Here is the result you will achieve:
- 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)
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month nowBy investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024