• Resolved Damien Wilson

    (@damienwilson)


    Good morning,

    Would someone be kind enough to help me with a conflict issue I currently have.

    After upgrading to 3.1 I noticed some of my javascript functions we’re not working correctly. I also noticed that jquery version 1.4.4 has been included in the head from directory /wp-includes/js/jquery/

    Can someone help here please? I’m using the latest release of jQuery (1.6.1) and can’t find a workable way to remove the WP include of version 1.4.4

    Thanks for your guidence

    Damien

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    It’s probably a plugin or your theme which is inserting the jQuery javascript in the header. Look in the source code for other scripts that are called after the jQuery scripts or deactivate all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the plugin that is using jQuery.

    Thread Starter Damien Wilson

    (@damienwilson)

    Hi Thanks,
    This is what gets loaded just after Google Analytics Plugin….

    <link rel="alternate" type="application/rss+xml" title="Coffee Machine Reviews &raquo; Compare AEG Coffee Machines Comments Feed" href="http://coffee-machines.storepage.co.uk/compare/compare-aeg-coffee-machines/feed" />
    <script type='text/javascript' src='http://coffee-machines.storepage.co.uk/wp-includes/js/l10n.js?ver=20101110'></script>
    
    <script type='text/javascript' src='http://coffee-machines.storepage.co.uk/wp-includes/js/jquery/jquery.js?ver=1.4.4'></script>
    <link rel='index' title='Coffee Machine Reviews' href='http://coffee-machines.storepage.co.uk' />
    <link rel='up' title='Compare Brands' href='http://coffee-machines.storepage.co.uk/compare' />
    <link rel='prev' title='Siemens Coffee Machines Reviews' href='http://coffee-machines.storepage.co.uk/siemens-coffee-machines-reviews' />
    <link rel='next' title='Compare DeLonghi Coffee Machines' href='http://coffee-machines.storepage.co.uk/compare-delonghi-coffee-machines' />

    Either side of the jQuery inclusion are WP additions to the head. Does this make a difference or are script includes, links etc queued before output to the page?

    Moderator keesiemeijer

    (@keesiemeijer)

    I would try deactivating the plugins first to see if that’s the problem. after that try deregistering jquery.
    in your theme’s functions.php:

    /**
    *	Use latest jQuery release
    */
    if( !is_admin() ){
    	wp_deregister_script('jquery');
    	wp_register_script('jquery', ("http://code.jquery.com/jquery-latest.min.js"), false, '');
    	wp_enqueue_script('jquery');
    }

    Thread Starter Damien Wilson

    (@damienwilson)

    Great :o) I’ll give this a try, thanks for your help

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP Adds jQuery in head of document, Why?’ is closed to new replies.