1. avioli
    Posted 3 years ago #

    Please, please, don't use embedded script tags!

    Adding a <script> tag as plain string to the header or footer makes it hard to disable it if it makes issues with a installation.

    Instead use wp_enqueue_script (or wp_register_script first) outlined at Codex.

    In my case, I've got jQuery already loaded, and your plugin is loading it a second time.

    wp_deregister_script( 'jquery' );
    wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/XXXXXXXXX/jquery.min.js');
    wp_enqueue_script( 'jquery' );

    If you would like to do a version prior deregistering and registering the script, check check out another post of mine.


  2. oneTarek
    Posted 3 years ago #

    Thanks avioli
    Your method is correct. I will update this plugin

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic