Hi, I would like to make all the items on the same row. www.dtffox.com
Thank you in advance!
Topic summary
A user seeks to modify the “Text Columns With Images” section on the Combine theme to display all items in a single row instead of the default multi-row layout.
Initial Problem:
- Items currently display in multiple rows
- User wants horizontal alignment on one row
Solutions Provided:
Two CSS-based approaches were offered:
-
First solution: Add code to the
base.cssfile via “Edit theme code” in Shopify Admin, modifying the grid template columns property -
Second solution (recommended): Use the theme’s built-in Custom Code section (found in theme settings) for a more dynamic approach that automatically handles additional items without disrupting other theme properties
Both solutions involve CSS grid modifications using display: grid and grid-template-columns properties with specific gap and alignment settings.
Outcome:
- The issue was successfully resolved
- User confirmed the solution worked perfectly
- Screenshots were provided showing code placement and expected output
Hi Dtffox,
Kindly share your store Password.
Thanks
Hello @dtffox
password?
My apologies, I didn’t know it had a password enabled. It should be turned off now.
My apologies, I didn’t know it had a password enabled. It should be turned off now.
Hello there,
In Shopify Admin, navigate to “Edit theme code”, then open the “base.css” file and add the following code at the end:
.mount-css-slider.grid--align-items-stretch {
display: grid;
grid-template-columns: repeat(8,1fr);
}
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Hey @dtffox ,
Please navigate to theme customized, and click on setting and find custom code at the end, and paste this code there, the code will work dynamically like if you add more products then it will be start from new row. without disturbing any other properties of the current theme. If my solution worked then accept it.
.grid.grid--layout.grid-4.grid-portable-3.grid-lap-2.grid-palm-1.grid--align-items-stretch {
display: grid;
grid-template-columns: repeat(auto-fill,minmax(137px,1fr));
grid-column-gap: 6px;
grid-row-gap: 35px;
}
output:
code pasting place:
That worked PERFECTLY…thank you!


