Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #589276

    Hi,
    I’m using Enfold theme and have a console error on all the pages:
    /wp-content/themes/enfold/js/shortcodes.js?a9c57f:673 Uncaught ReferenceError: avia_is_mobile is not defined

    Help please.

    Cheers,
    Guy.

    #589278

    Hey Guy!

    Can you please try de-activating all active plugins and flush cache and check if that helps?

    Best regards,
    Yigit

    #589292

    Nope, it didn’t help …

    #589294

    Hi!

    Can you please try re-updating the theme via FTP and overwrite all files – kriesi.at/documentation/enfold/updating-your-theme-files/?
    Have you made any changes on theme files?

    Regards,
    Yigit

    #589302

    I’m using Enfold child, does it matter?

    #589305

    Hey!

    Do you get the same error when you switch to parent theme?

    Cheers!
    Yigit

    #589311

    Can I switch without losing any changes I’ve made to the style of the child theme?

    #589313

    Hey!

    Yes, it may look different but would get back to original looks as soon as you switch back to child theme.

    Best regards,
    Yigit

    #589321

    I got 404 when switched the theme to Enfold …
    Switched it back

    #590053

    Any updates guys?
    I’ve updated all the enfold folder with the latest files as you suggested and the problem still exists.

    Thanks for you help,
    Guy.

    #590289

    Hi,

    I just followed your hints (but the error still exists:

    rosterSlider: Set a width for the items!
    rosterSlider: Set a width for the items!
    rosterSlider: Set a width for the items!
    [body#top.home.page.page-id-93144.page-template-default.logged-in.admin-bar.boxed.open_sans.customize…, prevObject: m.fn.init[1], context: document, selector: “body”]
    Uncaught ReferenceError: avia_is_mobile is not defined

    Can you help?

    Br,

    George

    #590397

    Can you please create us a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

    #590420

    Done

    #591939

    Hi!

    Did you minify the scripts? Please disable the minification then modify the js > shortcodes.js file. Look for this code around line 3980:

    if(!endTriggered && !avia_is_mobile && $('html').is('.avia-safari') ) {
    

    … remove the avia_is_mobile conditional:

    f(!endTriggered && $('html').is('.avia-safari') ) {
    

    This is a minor scripting error. We’ll report this to Kriesi.

    Regards,
    Ismael

    #591952

    Hi Ismael,
    Done, looks like it solved the problem.
    did you mean I’ll remove the minification for good? Or just to edit the file?

    Cheers,
    Guy.

    #592146

    Hi!

    After making the changes please flush cache and then enable it and it should work fine.

    Best regards,
    Yigit

    #592162

    Works like charm, thanks!

Viewing 17 posts - 1 through 17 (of 17 total)
  • The topic ‘avia_is_mobile is not defined error’ is closed to new replies.