Jquery error (header / menu) - fix

Home Forums Jevelin Theme Jquery error (header / menu) – fix

Home Forums Jevelin Theme Jquery error (header / menu) – fix

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • deuxrose
    Participant

    Site was loading but showing blank pages (no content). In console showed this error

    Uncaught Error: Syntax error, unrecognized expression: nav.sh-header-mobile-dropdown li.menu-item > a[href*=#] at Function.ea.error (jquery.js:2) at ea.tokenize (jquery.js:2) at ea.select (jquery.js:2) at Function.ea [as find] (jquery.js:2) at n.fn.init.find (jquery.js:2) at new n.fn.init (jquery.js:2) at n (jquery.js:2) at HTMLDocument.<anonymous> (scripts.js?ver=5.5:565) at i (jquery.js:2) at Object.fireWith [as resolveWith] (jquery.js:2)

     

    Found a fix – put in the functions.php file:

     

    add_action( 'wp_enqueue_scripts', 'load_old_jquery_fix', 100 );
    
    function load_old_jquery_fix() {
        if ( ! is_admin() ) {
            wp_deregister_script( 'jquery' );
            wp_register_script( 'jquery', ( "//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js" ), false, '1.11.3' );
            wp_enqueue_script( 'jquery' );
        }
    }
    
    
    

     

    Please look to finding a more perm solution in jevelin theme

    Hi @deuxrose,

     

    Sorry to hear about the problem you are having.

     

    Could you please tell me which version of WordPress you are using?

     

    I could confirm this issue on my website by using WordPress version 5.5

     

    It seems the theme jQuery script is causing the issue as jQuery is updated in the latest WordPress version 5.5

     

    The issue will be fixed ASAP in the upcoming version of the theme.

     

    Best regards,
    Shufflehound team

    deuxrose
    Participant

    WordPress 5.5 running

    Thank you for confirming it.

    Videvince
    Participant

    Hi there. I’m facing the same issue. Waiting for an update to fix it.

    Thank you.

    The issue is resolved in the below latest version of theme so please update the theme as described here https://support.shufflehound.com/updating-theme/

     


    Please login to access this file

     

    Please clear your browser cache after updating the theme so that the latest js and CSS files will be loaded.

    ericwooley
    Participant

    This is still an issue for me with the beta that was posted.

    Adding the code to functions.php fixed it for me.

    @ericwooley If you are still facing the issue with the latest theme version then to help us keep support thread separates could you please create your own thread for your question instead of posting a reply on others thread as it makes the thread messy and hard to read.

     

    If you want to you can also add a reference to this thread in your newly created thread.

     

    We would be more than happy to help you with your new thread.

     

Viewing 8 posts - 1 through 8 (of 8 total)