[wp-hackers] Re: wp_enqueue_script Question
sunburntkamel
sunburntkamel at gmail.com
Thu Mar 27 16:34:58 GMT 2008
I'm not sure that's correct - I've always used:
add_action('wp_head', wp_enqueue_script('jquery') );
Which _just works_. Putting it inside a function (as Austin did)
never works for me.
On Mar 27, 8:01 am, "Austin Matzko" <if.webs... at gmail.com> wrote:
> On Thu, Mar 27, 2008 at 8:58 AM, Chris Poteet <cpot... at siolon.com> wrote:
> > I have this. It adds the css but not the jquery. What am I doing
> > wrong (please)?
>
> > function postinfo_head() {
> > wp_enqueue_script( 'jquery' );
> > echo "<link href=\"". get_bloginfo('wpurl'). "/wp-content/plugins/
> > post-information/post-information.css\" type=\"text/css\" rel=
> > \"stylesheet\" media=\"screen\" />";
> > }
>
> > add_action('wp_head', 'postinfo_head');
>
> "wp_head" is too late for queuing; you need to do it earlier, perhaps at "init."
> _______________________________________________
> wp-hackers mailing list
> wp-hack... at lists.automattic.comhttp://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list