Shopify themes, liquid, logos, and UX
I would like to have different background colors in the same section. For example, In the multirow section, I have 5 rows. I want to have a different background color for each row. I would like also to have a heading color different than the body color in the row section. Is there a way to use custom CSS to reach to this result ?
Hi @Hassanzy, if you are dev you may know that the custom CSS won't apply on the javascript trigger, and if you could share your store URL I can better accommodate you. and which theme you are using?
Need a Shopify Expert and Specialist? Let's chat on WhatsApp +923046983349 and bring your vision to life!
Custom Shopify Store Design | Premium Themes | Variant Apps Expert
Your Coffee Tip a seamless synergy. ☕❤️
Identify Rows and Headings: First, make sure each row and heading in your multirow section has unique classes or IDs. This will help you target them specifically with CSS.
Add Custom CSS: Go to your Shopify Admin, click on “Online Store” > “Themes” > “Actions” > “Edit code.” Open the base.css or theme.css file in the “Assets” folder and add custom CSS like this:
.row-1 {
background-color: #f0f0f0; /* Light grey for row 1 */
}
.row-1 h2 {
color: #333; /* Dark grey for heading in row 1 */
}
.row-2 {
background-color: #e0e0e0; /* Slightly darker grey for row 2 */
}
.row-2 h2 {
color: #666; /* Medium grey for heading in row 2 */
}
/* Repeat for other rows */
Replace .row-1, .row-2, etc., with the actual classes or IDs used in your HTML.
Apply Classes to HTML: Ensure that your HTML for the rows includes the correct classes:
<div class="row-1">
<h2>Heading for Row 1</h2>
<p>Body content for Row 1</p>
</div>
<div class="row-2">
<h2>Heading for Row 2</h2>
<p>Body content for Row 2</p>
</div>
This approach allows you to set unique background colors for each row and different colors for the headings within those rows. Adjust the colors and class names as needed for your design.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025