Home › Forums › General Issues › Set background colour of a text layer in Slider Revolution › Reply To: Set background colour of a text layer in Slider Revolution
I don’t really know much about rev slider. From what I can see in that article it looks like what you’re doing with the div should work.
<div style="background-color:{{meta:event_main_color}}" class="primary-background"></div>
What is the class primary-background doing?
Is the div being output properly with the css style?
When you inspect the page is the background color being applied or is it overridden by something else?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.