Woocommerce dark theme checkout form contrast

http://websozo.com/beestunning/checkout/

Is there a way to make the ‘country’ and ‘state’ drop down boxes show a more contrasted font? Right now they are showing a very faint grey, and it would be better to be black. Please help.

Hi there,

Thanks for writing in! To change the color of the combo boxes, please add the following code in the Theme Options > CSS:

.select2-results__option {
    color: #000 !important;
}
input.select2-search__field {
  color: #fff !important;
}

If you would like to learn CSS, I am sharing few resources that you take a look to get started with CSS and an interesting tool that you can use to speed up the development process.

I recommend you to watch following video that will help you to get started with CSS.

https://www.youtube.com/watch?v=MFR4WXiLzpc

Sometimes it can get a bit difficult to find out the right selector to be able to write the required CSS codes. A handy tool that can help you in this is Google Chrome dev tools. I am sharing the resource that you can refer to get started with dev tools.

https://developers.google.com/web/tools/chrome-devtools/css/

https://developers.google.com/web/tools/chrome-devtools/

https://www.youtube.com/watch?v=tP_kXBJWPhQ&t=200s

Cheers!

This didn’t work. Here’s what I’m seeing.

Hi again,

I tested the above code using developer’s tool and it works as expected (see screenshot)

You may have a syntax error in your CSS section, try validating your CSS via https://jigsaw.w3.org/css-validator/#validate_by_input by pasting the CSS. If you find errors just fix them.

In the mean time add the above code in your Child Theme’s style.css file. If you haven’t setup the child theme yet then I’d suggest you to install the child theme first, please see https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57

Hope this helps!

Ok. I wasn’t using the child theme. Is that necessary for this? I can do it if so.

Hi,

There is a syntax error in your css code in Theme Options > CSS

Kindly replace the last part from this

.x-slider-container.below {
    border-bottom: 0;    
    .select2-results__option {
        color: #000 !important;
    }
    input.select2-search__field {
        color: #fff !important;
    }

to this


.x-slider-container.below {
        border-bottom: 0;    
}  /* this curly bracket was missing */

.select2-results__option {
        color: #000 !important;
}

input.select2-search__field {
        color: #fff !important;
}

Hope that helps

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.