[theme-reviewers] Dynamic CSS and WP Customizer API

Chip Bennett chip at chipbennett.net
Sun May 11 00:44:08 UTC 2014

+1 for wp_add_inline_style() for dynamic (theme option or custom) CSS

On Sat, May 10, 2014 at 6: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/a3bd664a/attachment-0001.html>

More information about the theme-reviewers mailing list