JavaScript failing and breaking site.

Support Forums for LiveMesh Themes & Plugins Forums Peak Theme Support JavaScript failing and breaking site.

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

    There seems to be issues with the javascript after a recent theme update.

    a[href*=#]’ appears to fail in multiple lines of code.

    jquery.js?ver=1.12.3:2 Uncaught Error: Syntax error, unrecognized expression: #mobile-menu-toggle, #mobile-menu a[href*=#]

    main.js / #390
    $(“#mobile-menu-toggle, #mobile-menu a[href*=#]”).on(‘click’, function () {
    MO_THEME.toggle_mobile_menu();
    return true;
    /* must return true to record click event for smooth scroll of internal links */
    });

    if I hack out the 2nd part (“#mobile-menu a[href*=#]”).. it works but then it fails on
    #258
    $active_menu_item = $(‘#primary-menu > ul > li.current_page_item > a’).not(‘a[href*=#]’).first();

    Thank you,

    #22460
    Veena
    Moderator

    Pls update the theme to latest version – 2.1 .
    You can download latest version theme from your themeforest account > downloads tab .

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Peak Theme Support’ is closed to new topics and replies.