Variable CSS using ACF

Hello Cwicly team,

Could you let me know how to achieve variable CSS using an ACF field, something similar to what is discussed here: ACF color picker custom fields to CSS custom properties workflow in Oxygen

I’m trying to use an ACF field to control the background colour of a div on the frontend.

Looking forward to your assistance.

Hi @zagency,

Sorry for not responding sooner.

As mentioned in my email to you, this can be achieved with an ACF field group with the Color picker field type and the use of an attribute, that was mentioned here.

Please don’t hesitate to let me know if you have any questions.

Hi @Araminta,

Thank you for your response. I have tried it and it worked great.

2 Likes