• Resolved multiformeingegno

    (@lorenzone92)


    Hi everyone! ??
    I created a TwentyEleven child theme and I was wondering what’s the best way to include jQuery. If I’m not wrong TwentyTen included it by default, and I could call it with <?php wp_enqueue_script(“jquery”); ?> .

    If I try to add that in my <head> tags it doesn’t work. Is there a new way to include it?

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Using any theme you should be able to use <?php wp_enqueue_script("jquery"); ?> in your theme to enqueue the jQuery version included in WordPress.

    You may have a plugin installed that is de-registering the WordPress default. In that case you can add it to your theme using this script:

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

    Thread Starter multiformeingegno

    (@lorenzone92)

    Ok, I’m sorry.. it was my fault. I added the enqueue script in the <head> tags but in the code it appeared after the footer (so I didn’t see it) ??

    Marking topic as solved! ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Enqueue jQuery’ is closed to new replies.