How to reduce the size of multi column or fit 5 across instead of 4
On desktop I would like all columns across and the images smaller
A user wants to display 5 columns instead of 4 in their Shopify store’s multi-column section on desktop, with smaller images.
Solutions Provided:
Two working solutions were offered:
CSS via theme.liquid: Add custom CSS code in the theme.liquid file, just above the </body> tag, to adjust column layout
CSS via theme.css: Add media query code to theme.css targeting screens wider than 1000px:
@media screen and (min-width: 1000px) {
.multi-column {
grid: auto / repeat(5, minmax(0, 1fr));
}
}
Resolution:
The original poster confirmed the first solution worked successfully. Both approaches modify the grid layout to accommodate 5 columns across on desktop displays.
How to reduce the size of multi column or fit 5 across instead of 4
On desktop I would like all columns across and the images smaller
Hey @AmberWilkinson
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code in the bottom of the file above tag
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Amazing! Thank you so much!!!
Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.
Hello @AmberWilkinson
Go to online store ---------> themes --------------> actions ------> edit code------->theme.css
at the end of the file and save.
@media screen and (min-width: 1000px) {
.multi-column {
grid: auto / repeat(15,minmax(0,1fr));
}
}
result
If this was helpful, hit the like button and accept the solution.
Thanks