Dynamic CSS – Colour and Sort
-
A theme allows me to create a custom post. In that custom post I can have a custom field.
Indeed I could use any theme and create a custom post type and fields within it.
An example would be a personal profile where the field is: Intelligence
The radio field for intelligence contains
Dealbreaker
Very Important
Important
Consideration
Not ImportantPriority 1:
Depending on the response for example Dealbreaker I would like to highlight with a green background and white text, whereas Not Important I want a red background with white text.
Priority 2:
Is to sort them by response – group each response together because I will be asking a number of other character traits for a job portal.
How might I achieve this without changing code within the theme.
I can edit css through css hero or yellow pencil
I can add javascript via a plugin or the child theme
Thank you.
- The topic ‘Dynamic CSS – Colour and Sort’ is closed to new replies.