<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>Yeah just a typo there, wp_enqueue_style(); should be used whenever
possible</DIV>
<DIV><BR>*UNLESS* It’s an ordering situation where a style needs to load
before everything else or directly after the base style.css</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=chip@chipbennett.net
href="mailto:chip@chipbennett.net">Chip Bennett</A> </DIV>
<DIV><B>Sent:</B> Friday, June 03, 2011 4:02 AM</DIV>
<DIV><B>To:</B> <A title=theme-reviewers@lists.wordpress.org
href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</A>
</DIV>
<DIV><B>Subject:</B> Re: [theme-reviewers] wp_enqueue_style</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">Wait:
you want to enqueue a *style* at 'wp_enqueue_scripts'? Or was that a typo?
<DIV> </DIV>
<DIV>Chip<BR><BR>
<DIV class=gmail_quote>On Fri, Jun 3, 2011 at 5:54 AM, Otto <SPAN dir=ltr><<A
href="mailto:otto@ottodestruct.com">otto@ottodestruct.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV class=im>On Fri, Jun 3, 2011 at 5:48 AM, Vicky Arulsingam<BR><<A
href="mailto:vicky.arulsingam@gmail.com">vicky.arulsingam@gmail.com</A>>
wrote:<BR>>> I see a few issues:<BR>>> 1) Styles should be
enqueued and *hooked* in; front-end styles should be<BR>>> hooked into
'wp_print_styles'.<BR>><BR>> I've seen a number of themes that use
wp_enqueue_style() / wp_enqueue_script<BR>> within the header.php.
I'll be sure to distinguish between wp_print_style<BR>> and
wp_enqueue_style in future reviews.<BR><BR></DIV>No, enqueueing of styles for
the front end of the site should be in a<BR>function hooked to the
wp_enqueue_scripts action, *not* to<BR>wp_print_styles.<BR><BR>Correct
way:<BR><BR>add_action('wp_enqueue_scripts','my_enqueue_stuff');<BR>function
my_enqueue_stuff() {<BR>wp_enqueue_styles(...);<BR>}<BR><BR>The reason for
this is that wp_print_styles is the last possible<BR>moment to enqueue a
style, and so it should be reserved for<BR>*dequeueing* styles instead.
Enqueue early, dequeue late.<BR><FONT color=#888888><BR>-Otto<BR></FONT>
<DIV>
<DIV></DIV>
<DIV
class=h5>_______________________________________________<BR>theme-reviewers
mailing list<BR><A
href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</A><BR><A
href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers"
target=_blank>http://lists.wordpress.org/mailman/listinfo/theme-reviewers</A><BR></DIV></DIV></BLOCKQUOTE></DIV>
<DIV> </DIV></DIV>
<P>
<HR>
_______________________________________________<BR>theme-reviewers mailing
list<BR>theme-reviewers@lists.wordpress.org<BR>http://lists.wordpress.org/mailman/listinfo/theme-reviewers<BR></DIV></DIV></DIV></BODY></HTML>