Can’t call custom css in style.php
The easiest way to add dynamic CSS is to put it inside a callback and hook the callback into the template, e.g. via wp_head (or wp_print_styles). You’ve not posted your code in full context, so you will need to modify to suit your specific needs. That said, here’s the basic principle: Callback function wpse_129259_enqueue_dynamic_css() { … Read more