[theme-reviewers] Dynamic CSS and WP Customizer API

Sheri Bigelow sheri at designsimply.com
Sat May 10 22:32:41 UTC 2014


>
> About the Theme Customizer API and dynamic CSS, I wondered if it was
> better to add styles with wp_add_inline_style() or to add a dynamic css like
> this <http://css-tricks.com/css-variables-with-php/> and enqueue them
> with wp_enqueue_style() ?
>

I think adding styles with wp_add_inline_style() would be better than
generating CSS in a PHP file like in the example you linked to because the
PHP route seems like more overhead to me plus it's an extra file where you
don't need to make an extra file.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20140510/8d5af099/attachment.html>


More information about the theme-reviewers mailing list