[theme-reviewers] Adding <style> tag to <head>, functions.php or header.php?

Chip Bennett chip at chipbennett.net
Wed Jul 23 00:15:43 UTC 2014


It must be enqueued, and hooked at an appropriate action. If it's a
stylesheet bundled with the Theme, it should be enqueued via
wp_enqueue_style(). If it's a directly output <style>, then it should be in
a callback, hooked into wp_head.


On Tue, Jul 22, 2014 at 7:11 PM, Yentl Bresseleers <hello at design311.com>
wrote:

> How do you correctly add a style tag to the head, do theme authors use
> functions.php or can they add it in their header.php?
>
> Example, a theme author allows users to select a google webfont for
> titles, now this webfont needs to be added to the CSS.
>
> _______________________________________________
> 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/20140722/08e2a704/attachment.html>


More information about the theme-reviewers mailing list