How to add [acf field = ‘myfield’] inside a text element
-
How can I add [acf field = ‘myfield’] inside a text element? (I know I can add an element with ACF content, but I want to be able to add a custom class to it depending on the content of that ACF.)
I want to create a Badge and have a class with the content of that badge to be able to give it a custom style from CSS depending, example:
Additional CSS class:
[acf field = ‘badge’]
—
CSS selector:
.badge [class * = “new”] {color: green;}
.badge [class * = “old”] {color: silver;}
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to add [acf field = ‘myfield’] inside a text element’ is closed to new replies.