Re: Change background colour for each column in a multicolumn

Solved

Change background colour for each column in a multicolumn

nadezhda_ilieva
Excursionist
16 0 5

Hello. I would like to change the colour of each column in my multicolumn. Right now it looks like that, but I would like to make it look like what Sephora has right now. 

 

Screenshot 2024-07-30 at 7.00.05 PM.png

image.png

 

Thanks! 

Accepted Solution (1)
Guleria
Shopify Partner
4164 810 1167

This is an accepted solution.

@nadezhda_ilieva ,

 

Follow these steps:

1. Go to Online Store -> Theme -> Edit code

2. Open your base.css file and paste the following code at the bottom:

  .multicolumn-list li:nth-child(1) > .multicolumn-card {
    background-color: red;
}
.multicolumn-list li:nth-child(2) > .multicolumn-card {
    background-color: #d4bfbf; 
}
.multicolumn-list li:nth-child(3) > .multicolumn-card {
    background-color: #e0e0e0;
}
.multicolumn-list li:nth-child(4) > .multicolumn-card {
    background-color: #ddf4dd; 
}

 

You can change color code a/to your need.
And if you have more than 4 multicolumns add same rule for others.

 

Thanks  

 

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder

View solution in original post

Replies 10 (10)

Guleria
Shopify Partner
4164 810 1167

Hello @nadezhda_ilieva ,

 

Yes possible but keep note need customization.
Idea is to create an option with a multicolumn column to assign a color. I think 2 options needed are dark and light. 
Once an option is created , assign color to each column and then go to the code and fetch it. 
In this way each column will use the assigned color dynamically. 

 

Thanks

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
nadezhda_ilieva
Excursionist
16 0 5

Much appreciated, but I am not good at coding to make these changes myself.

Guleria
Shopify Partner
4164 810 1167

This is an accepted solution.

@nadezhda_ilieva ,

 

Follow these steps:

1. Go to Online Store -> Theme -> Edit code

2. Open your base.css file and paste the following code at the bottom:

  .multicolumn-list li:nth-child(1) > .multicolumn-card {
    background-color: red;
}
.multicolumn-list li:nth-child(2) > .multicolumn-card {
    background-color: #d4bfbf; 
}
.multicolumn-list li:nth-child(3) > .multicolumn-card {
    background-color: #e0e0e0;
}
.multicolumn-list li:nth-child(4) > .multicolumn-card {
    background-color: #ddf4dd; 
}

 

You can change color code a/to your need.
And if you have more than 4 multicolumns add same rule for others.

 

Thanks  

 

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
nadezhda_ilieva
Excursionist
16 0 5

Thank you a lot! It worked perfectly.

Julie4
Tourist
4 1 2

Thank you so much.. I just applied your response to this question (changing the colour I wanted) and it worked, first go 🙂 Your instructions were so easy to follow.

JPerry

Made4uo-Ribe
Shopify Partner
10202 2422 3068

Hi @nadezhda_ilieva 

Do you like to add option controls that you can easily change wherever you want(this need a developer)? or by code that also the color change by code(I would need your store URL to provide the code)?

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
nadezhda_ilieva
Excursionist
16 0 5

Thank you. Just being able to change the colors would be enough! This is my website https://aboutmi.bg/ (password: nadia)

nadezhda_ilieva
Excursionist
16 0 5

Thank you very much! I will try that. I am new to coding, so I am not sure if I will be able to do it. 

BSS-TekLabs
Shopify Partner
2401 695 835

Hello @nadezhda_ilieva .
Our team is ready to help you.
Please share your website address and access password (if necessary) so that we can check and assist 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)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
nadezhda_ilieva
Excursionist
16 0 5

This is my website https://aboutmi.bg/ (password: nadia) Thanks very much