Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #643113

    Hello all
    I really hope, someone can help me here.
    I have updated to the latest Enfold Version, as well as all the Plugin and WordPress itself.

    Now, instead of my google map, it ask me to add a jQuery to my code.
    According to the Plugin FAQ it looks quite simple:

    http://www.wpgmaps.com/documentation/troubleshooting/jquery-troubleshooting/

    I added this line to my header.php – but then my whole website did not work.
    Is there any other way to add this JQuery to the Enfold, in order that my Plugin works again?

    Thanks a lot for your help
    milaline

    #643202

    Hi milaline!

    Wordpress comes loaded with latest version of jQuery. To disable the default jQuery that comes with wordpress and add your version please add the below code in functions.php which can be accessed via Appearance > Editor

    function modify_jquery() {
    if (!is_admin()) {
    	wp_deregister_script('jquery');
    	wp_register_script('jquery', 'https://code.jquery.com/jquery-1.11.3.min.js');
    	wp_enqueue_script('jquery');
    }
    }
    add_action('init', 'modify_jquery');

    The above method is not advised as it may cause errors with elements on your site that require the latest version of jQuery.

    I guess it is best to contact the plugin author as they know their plugins best.

    Cheers!
    Vinay

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.