Grow your CSS skills. Land your dream job.

Definitive way to use jQuery and your own scripts with WordPress

  • # June 28, 2013 at 11:58 am

    I thought this was going to relatively easy to answer but there seems like theres so many conflicting reports as to which is the best way to firstly use jQuery and then your own scripts afterwards.

    Chris has a version on this website, then I’ve been on stack overflow and they seem to recommend that you use the version that comes with WordPress.

    So my questions are:

    A. Which is the best method?

    Should I use the code that Chris lists on this page?

    [CSS Tricks Code…](http://css-tricks.com/snippets/wordpress/include-jquery-in-wordpress-theme/ “CSS Tricks Code”)

    B. Is it better to use the version that comes with WP even though its an older version?

    C. Normally you would load just before close of body but for the case of plugins is it best to load in the head?

    D. Using any of these methods you still get the old script tags can this be changed so you just use the HTML5 version without text/javascript?

    E. Whats the best way of using my own script once I have jQuery working?

    Thanks

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".