Change the font color when displaying one of the three custom field options

[ad_1]

Hello,

I have created my own field (named: availability) for one of the apartment rental options (field options are: free, reserved, rented).

In the Pods options, the own field has been created as:
Field relation – Relation,
Relation type – Simple (own defined list)
Custom Defined Options – free|FREE, reserved|RESERVED, rented|RENTED.

My question: how can I add a dependency so that the front-end apartment rental status font color is displayed as:
free – green font, reserved – yellow font, rented – red font ?

Can I set this type of dependency in the Pods plugin, or somehow put it in the functions.php file, how to do it?

I will be very grateful for your help!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer