Filter background color change - Craft Theme

Solved

Filter background color change - Craft Theme

cfahms
Excursionist
18 0 4

Hello,

 

I would like the code to change the background color for the filter drop down option.  Any advice would be appreciated.

 

Website: circlebackvintage.com

Screenshot 2023-08-16 at 1.11.24 PM.pngScreenshot 2023-08-16 at 1.13.14 PM.png

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
9843 2340 2934

This is an accepted solution.

The Availabity background is not visible on my screen.

Try this code.

 

.facet-checkbox>svg {
    background-color: white !important;
}

 

Result:

Ribe_Dagandara_0-1692212952802.png

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

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.

View solution in original post

Replies 7 (7)

Made4uo-Ribe
Shopify Partner
9843 2340 2934

Hi @cfahms 

Try this one. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

 

.facets__header {
    background: #ffff;
}
price-range.facets__price {
    background: #ffff;
}
.field__input {
    background: #ffff !important;
}

 

 

  • Save
  • I hope it help. 
  • Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

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.
cfahms
Excursionist
18 0 4

Worked well with the exception of the availability dropdown. The body is remaining black and I'm not sure why. 

 

Screenshot 2023-08-16 at 1.44.08 PM.png

Made4uo-Ribe
Shopify Partner
9843 2340 2934

Try this one. I think there a conflict.

 

fieldset.facets-wrap.parent-wrap {
    background: white;
}

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

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.
cfahms
Excursionist
18 0 4

That get's me closer. Now the only thing is the check boxes within that same dropdown is still black, making it impossible to see which box is checked. Could you tell me how to fix that?

Thanks againScreenshot 2023-08-16 at 2.57.03 PM.png

Made4uo-Ribe
Shopify Partner
9843 2340 2934

This is an accepted solution.

The Availabity background is not visible on my screen.

Try this code.

 

.facet-checkbox>svg {
    background-color: white !important;
}

 

Result:

Ribe_Dagandara_0-1692212952802.png

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

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.
Sysbro
Visitor
1 0 1

How would you go about changing the checkmark color instead of changing the background? 

Made4uo-Ribe
Shopify Partner
9843 2340 2934

Do you like to change the check mark only? The code that I give to the post owner is only to change the checkmark. If you like want I can do it also in your store. I just need your URL store. Thanks!

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.