ACF Colorpicker field not parsed in CSS snippet
-
Hi Shea,
I’ve created a bunch of colorpicker fields with ACF Pro (5.9.1). In Elementor Pro (V.3.0.11) they parse just fine, straight in a page.
I wanted to add some custom CSS through a snippet, but the sample code has no effect. The CSS appears, but the value from the field does not. What am I missing?
add_action( 'wp_head', function () { ?> <style> .bktest { background-color: <?php the_field('farbe_handbikes'); ?>; } </style> <?php } );
Cheers from Germany,
Anne
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘ACF Colorpicker field not parsed in CSS snippet’ is closed to new replies.