<?php
header("Content material-type: textual content/css; charset: UTF-8"); //look fastidiously to this line
$primary_color = " get_field('primary_theme_color', 'possibility');";
?>
<type sort="textual content/css">
--primary-color: <?php echo $primary_color; ?>;
</type>
Screenshot: https://i.stack.imgur.com/t3f5P.jpg
I’m making a customized theme in WordPress. I’m utilizing the ACF plugin to make issues dynamic. I’ve created an possibility web page the place the consumer can choose the colour which must be show on the web site. For that, I transformed frequent type.css to common-style.php and linked the common-style.php in capabilities.php, however I’m not capable of obtain the background shade.

