WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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