• Upon checkout, my drop-down box text for ‘State’ is white and doesn’t appear when you click on it to view more options. Can anyone provide custom CSS to fix this? Thanks in advance ??

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @tuebe451
    To change the color of the text in the drop-down box, you can use the following CSS code:

    .select2-results__option[aria-selected], .select2-results__option[data-selected] {
        color: #000000; /* Change this to the desired color */
    }

    To apply this CSS code, you can add it to Appearances -> Customize -> Additional CSS,, or you can use a plugin like “Simple Custom CSS” to add it to your site.

    Please note that the above CSS code is just an example, and you may need to adjust the selectors to match the specific drop-down box on your site. You may also need to adjust the color value to match your site’s design.

    I hope this helps! Let me know if you have any questions.

    Hi @tuebe451!

    To change the dropdown item text color, here is the CSS that you can use:

    .select2-container--default .select2-results__option[aria-selected=true], .select2-container--default .select2-results__option[data-selected=true] {
        color: #000;
    }
    
    .select2-results__option[aria-selected], .select2-results__option[data-selected] {
        color: #000;
    }

    You can change the color code as per your own requirement.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom CSS for Woocommerce Drop-down box Color’ is closed to new replies.