Is it possible to change font color of label on based based on it’s value?
-
Hi,
Is it possible to change the font color (or other attribute) of a label or element on the Woocommerce shop page based on its value?
I can use CSS to change the attributes. However, I only want to change the attribute if the value meets a certain condition.
For example, I have metal rods that vary by length. I can easily change the label attributes so that “LENGTH” is color: red. But I want to only change this label if the value is greater on 100mm.
Right now, when I change the label’s attribute, I can only change it all the time.
Please let me know if this isn’t clear.
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Is it possible to change font color of label on based based on it’s value?’ is closed to new replies.