Home Forums Front-end Issues ACF Color picker value in css


ACF Color picker value in css

  • Dear ACF Community,

    I need some help with the ACF Extended Color Palette field. I added a Color Palette field to my woocommerce products, so any product can have a unique border color on hover. Normally Elementor supports dynamic fields like this, but the new Loop Builder feature has some issues dynamic data or ACF Fields.

    I tried to add it with css based on the tutorial from this article, but if i add the php code to the CSS in Elementors Custom CSS field, i get an unknown property error message.

    Is there maybe a workaround?

    Thank you in advance!

  • You cannot add PHP to the field for CSS in elementor. The only work around I know of would be to build a custom shortcode to generate the CSS and then use a shortcode widget in elementor to call that shortcode.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.