<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>This is what the WordPress Guidelines has to say about it:<div><br></div><div><ul style="margin-left: 18px; padding-right: 0px; padding-left: 0px; color: rgb(85, 85, 85); line-height: 18.1875px; list-style-position: initial; list-style-image: initial; border: 0px none; overflow: visible; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-top: 10px !important; margin-right: 0px !important; margin-bottom: 22px !important;"><li style="margin: 0px; padding: 2px 0px 0px; border: 0px none; overflow: visible; position: relative;"><font size="3">Themes are <b>required</b> to enqueue all stylesheets and scripts, using <tt><a title="Function Reference/wp enqueue style" href="http://codex.wordpress.org/Function_Reference/wp_enqueue_style" style="text-decoration: none; color: rgb(52, 120, 227);">wp_enqueue_style()</a></tt>/<tt><a title="Function Reference/wp enqueue script" href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script" style="text-decoration: none; color: rgb(52, 120, 227);">wp_enqueue_script()</a></tt>, and hooked into an appropriate hook via callback function, rather than hard-coding stylesheet/script links or tags in the template.</font><ul style="margin-left: 18px; padding-right: 0px; padding-left: 0px; line-height: 1.4em; list-style: disc; border: 0px none; overflow: visible; margin-right: 0px !important;"><li style="margin: 0px; padding: 2px 0px 0px; border: 0px none; overflow: visible; position: relative;"><font size="3">Themes are <b>required</b> to use the Theme-specific hook for admin-enqueued scripts/stylesheets, e.g. admin_print_scripts-appearance_page_$menu_slug</font></li><li style="margin: 0px; padding: 2px 0px 0px; border: 0px none; overflow: visible; position: relative;"><font size="3">Themes may <b>optionally</b> link the default stylesheet (<tt>style.css</tt>) directly in the document head, or via<tt>wp_enqueue_style()</tt>. Whichever method is used, the default stylesheet must be referenced via <tt><a title="Function Reference/get stylesheet uri" href="http://codex.wordpress.org/Function_Reference/get_stylesheet_uri" style="text-decoration: none; color: rgb(52, 120, 227);">get_stylesheet_uri()</a></tt></font></li></ul></li><li style="margin: 0px; padding: 2px 0px 0px; border: 0px none; overflow: visible; position: relative;"><font size="3">Themes are <b>required</b> to use core-bundled scripts, if using such scripts</font></li><li style="margin: 0px; padding: 2px 0px 0px; border: 0px none; overflow: visible; position: relative;"><font size="3">Themes <b>must not</b> use TimThumb</font></li></ul><br><div><hr id="stopSpelling">From: phillipwells@hotmail.co.nz<br>To: theme-reviewers@lists.wordpress.org<br>Date: Fri, 4 Oct 2013 22:42:10 +1300<br>Subject: [theme-reviewers] Scripts enqueue in header.php<br><br>
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr">Do scripts need to be enqueue in header.php </div>
<br>_______________________________________________
theme-reviewers mailing list
theme-reviewers@lists.wordpress.org
http://lists.wordpress.org/mailman/listinfo/theme-reviewers</div></div> </div></body>
</html>