[theme-reviewers] Default Post Thumbnail Help

Otto otto at ottodestruct.com
Tue Feb 28 19:27:36 UTC 2012

On Tue, Feb 28, 2012 at 12:14 PM, Chip Bennett <chip at chipbennett.net> wrote:
> Actual script - such as script to implement a slider - usually goes in the
> document body itself. If it can be put in the document head, then it can
> (and should) be hooked in via callback.

Note: use a bit of judgement on this one. It's one thing to have a
couple lines of <script> code that defines a few variables and such
for later use by an enqueued script. It's wholly another to have a big
chunk of functions. Even though variables should be done via
wp_localize_script or similar, that might be total overkill in some
very minimalist cases.

However, defining variables would always come before wp_head(), so the
"Nothing in the document head between wp_head() and </head>." totally


More information about the theme-reviewers mailing list