WordPress.org

Ready to get started?Download WordPress

Forums

Load jQuery from CDN but not in admin panel (4 posts)

  1. MultiformeIngegno
    Member
    Posted 2 years ago #

    Hi, I use this code to have jQuery loaded directly from its original CDN:

    // load jQuery directly from its original CDN
    add_filter('script_loader_src', 'my_script_loader_src', 10, 2);
    function my_script_loader_src($src, $handle)
    {
    	if ($handle == "jquery")
    		return "http://code.jquery.com/jquery-latest.min.js";
    
    	return $src;
    }

    Anyway it causes trouble with the drag 'n drop feature for the menu.

    How can I modify my code to "fix" this problem with the drag 'n drop ?

    Thanks in advance! :)

  2. MultiformeIngegno
    Member
    Posted 2 years ago #

    Nobody? Please a little help! :)

  3. MultiformeIngegno
    Member
    Posted 2 years ago #

    Bump

  4. Frederick Townes
    Member
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic