WordPress.org

Ready to get started?Download WordPress

Forums

  1. avioli
    Member
    Posted 2 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.

    http://wordpress.org/extend/plugins/insert-or-embed-articulate-content-into-wordpress/

  2. oneTarek
    Member
    Posted 1 year 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