I am making a custom theme in WordPress. I am using the ACF plugin to make things dynamic. I have created an options page where users can select the color which needs to be displayed on the website. So for that, I converted the common style.css to common-style.php and linked the common style.php in function.php but I am not able to achieve the background color.
header(“Content-type: text/css; charset: UTF-8″); //look carefully to this line
$primary_color = ” get_field(‘primary_theme_color’, ‘option’);”;
–primary-color: <?php echo $primary_color; ?>;