WordPress.org

Support

Support » Plugins and Hacks » [Resolved] plugin includes 1 copy of jquery in the footer

[Resolved] plugin includes 1 copy of jquery in the footer

  • Iā€™m struggling to stop Juiz Social Sharer to add a copy of jquery in the footer.

    I use this in functions.php

    function myJquery(){
    wp_deregister_script( 'jquery' );
    if(!is_admin()) {
    	wp_register_script('jquery', get_template_directory_uri().'/js/jquery.js', false, NULL, false);
    	}
    }
    add_action('wp_enqueue_scripts', 'myJquery');

    However, Juiz Social Sharer seems to force another instance of the script in the footer šŸ™ even if jquery is already registered.

    On other WP sites, without your plugin, my script works.

    Any idea?
    Thanks

    http://wordpress.org/plugins/juiz-social-post-sharer/

Viewing 1 replies (of 1 total)
  • Sorry, got it to go

    If it interests anyone to be placed in functions.php

    function myJquery(){
    wp_deregister_script( 'jquery' );
    if(!is_admin()) {
    	wp_register_script('jquery', get_template_directory_uri().'/js/jquery.js', false, NULL, false);
    	}
    	wp_enqueue_script('jquery');
    }
    add_action('wp_enqueue_scripts', 'myJquery');
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] plugin includes 1 copy of jquery in the footer’ is closed to new replies.