[theme-reviewers] Dynamic CSS and WP Customizer API

Emil Uzelac emil at uzelac.me
Sat May 10 22:56:57 UTC 2014


I would prefer wp_enqueue_style() for my Themes, but you can do either or :)


On Sat, May 10, 2014 at 5:32 PM, Sheri Bigelow <sheri at designsimply.com>wrote:

> 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.
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20140510/7e21e63b/attachment.html>


More information about the theme-reviewers mailing list