[theme-reviewers] Is wp_enqueue style/script necessary?
CONNOR Wayne and Jill
wayne at dubbo.org
Wed Aug 1 07:43:20 UTC 2012
I got this comment on last submission of my slidingdoor theme:
Themes are REQUIRED to enqueue all stylesheets and scripts, usingwp_enqueue_style()/wp_enqueue_script(), and hooked into an appropriate hook via callback function, rather than hard-coding stylesheet/script links or tags in the template.
I've been to http://codex.wordpress.org/Function_Reference/wp_enqueue_script and I don't actually understand what it's saying. I don't want to get my head around it if I don't have to!
Is it talking about my inclusion of say mootools in my header.php?
Do I need to do this differently?
'recommended' is not 'you must'.
I've checked out the twentyeleven theme and it has this in header:
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
that seems to be a direct including of a stylesheet not using wp_enque_style.
So some guidance would be appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the theme-reviewers