Dynamic Field - Dynamic Color - Question | JoomShaper

Dynamic Field - Dynamic Color

H

Hansis

SP Page Builder 3 days ago

Hello

I have a dynamic page. In a text-field "category" I have values of "OK", "WARNING", "ERROR". Now I want to change the color of the field:

  • OK -> green
  • WARNING -> yellow
  • ERROR -> red

how can I do this in CSS with option {field:category}

rg Hansi

0
2 Answers
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 3 days ago #214434

Hi

Thanks for contacting us. Could you please give me your site URL and also a screenshot of your issue?

-Regards.

0
H
Hansis
Accepted Answer
3 days ago #214436

Style> Miscellaneous: CSS Class: testcss {field:category} Custom CSS: testcss.OK { color:green; } testcss.WARNING { color:yellow; } testcss.ERROR { color:red; }

I hope these information help you.

0