• Resolved mandt

    (@mandt)


    I upgraded to the newest version of the Evolve theme and it caused my map plugin to stop working. The plugin developers found that it is placing the jquery code in the footer. I restored the theme files to backup and the map is now working. How can I upgrade to the newest version without having this problem?

    Below is the page code after the upgrade:

    [giant paste removed by moderators. Please use pastebin.com or gist.github.com for your pastes and put a link here.]

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • was this solved please?

    Thread Starter mandt

    (@mandt)

    Yes they were able to provide me with an update that fixed the problem.

    thanks for the update

    Hello I have exactly the same problem and I was hoping to find a solution here.
    The problem still exists in version 4.0.5.

    Can someone help me there ?

    Best regards

    hi @cypher89,

    what’s the issue please?

    Hi @romik84 ,

    the problem is that jquery will not work properly after updating to the latest version. The script I want to execute throws me the error: ReferenceError: jQuery is not defined.
    The jquery script runs earlier than it was loaded on the web page, probably because it’s in the footer.
    Do I have to change something in the functions.php?

    Add this code to the functions.php of the child theme and it will move jquery to the header area:

    /*
        Move jQuery Library To Header
        ======================================= */
    
    function evolve_move_jquery_header() {
    	remove_action( 'wp_head', 'evolve_move_jquery', 1 );
    }
    
    add_action( 'init', 'evolve_move_jquery_header' );

    Thank you @romik84 !
    Jquery is now back in the Header.

    Best Regards

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Update version 4.0.3 placing jquery in footer’ is closed to new replies.