Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #615971

    My site is missing all imagery. Viewing via inspect element i see this error on app pages:
    [Error] Error: Syntax error, unrecognized expression: .main_menu .menu li > a[href*=#]
    error (jquery.js:2:12788)
    tokenize (jquery.js:2:18792)
    fa (jquery.js:2:7087)
    find (jquery.js:2:24114)
    find (jquery-migrate.min.js:2:8513)
    AviaScrollSpy (avia.js:139)
    (anonymous function) (avia.js:260)
    each (jquery.js:2:2886)
    each (jquery.js:2:851)
    avia_scrollspy (avia.js:256)
    avia_ajax_call (avia.js:81)
    (anonymous function) (avia.js:58)
    i (jquery.js:2:27455)
    fireWith (jquery.js:2:28215)
    ready (jquery.js:2:30018)
    K (jquery.js:2:30374)

    This is the line of JS code that is marked as the error, line 422:
    }, fa.uniqueSort = function(a) {

    What is the solution?

    #615980

    Hey huberific!

    Please add the below code in functions.php

    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');

    You are probably using an old version of the theme. We have released an enfold update to match the changes made in the latest version of wordpress 4.5
    If you are not using a child theme please backup any custom changes you may have added to the theme and update enfold to latest version 3.5.2 make sure you have the correct API key from themeforest.
    If you are not able to view the update option in wordpress dashboard. Please update the theme manually via FTP following the steps provided here http://kriesi.at/documentation/enfold/portfolio-item/update-theme-files-with-ftp/
    Once you have updated to the latest version you can remove the above code from functions.php

    Cheers!
    Vinay

    #616676

    I am currently using a child theme, will the new Enfold version respect the edits in that child?

    #618053

    Hi,

    Any customisations you have in a child theme should be safe on an update, but it’s recommended to back up your site before updating.

    Regards,
    Rikard

    #622923

    We had the latest Enfold Version installed: 3.5.4
    And this Error occured.

    We solved it with Vinnies script..

    Cheers,
    Chris

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Pages toss Syntax error, unrecognized expression: .main_menu .menu li > a[href*=’ is closed to new replies.