Product attribute dropdown to change text color once value is selected
-
I want my WooCommerce product attributes dropdown to display the selected options differently based on which option is selected. More specifically, if the first option (aka the default “Choose an Option” option) is selected, the text of the dropdown should be in grey, otherwise (aka when an actual value for the attribute is selected), the text should be in black.
I tried some CSS with
.single-product div.product table.variations select option:first-child
, but it works only for the list itself, not the selected option on display.Thanks in advance!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Product attribute dropdown to change text color once value is selected’ is closed to new replies.