[theme-reviewers] Dynamic CSS and WP Customizer API
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the theme-reviewers