Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #328120

    Hi,

    Today I’ve started having an issue where the Avia Layout Builder isn’t loading at all. If you could let me know what could be causing this and suggest a solution, that would be great.

    Thanks

    #328125

    Hi plugmedialtd!

    Please try de-activating all active plugins and check if that helps
    P.S.: Enfold version 3 was released – http://kriesi.at/archives/enfold-version-3-0-bigger-better-faster
    You can try re-updating the theme to the latest version and check if that helps as well – http://vimeo.com/67209750

    Regards,
    Yigit

    #328248

    Hi Yigit,

    Thanks for the reply. I tried both of your suggestions and neither made any difference unfortunately.

    #328287

    Hey!

    It seems like you are still using Enfold version 2.9.2. Can you please try re-updating the theme via FTP and please make sure to overwrite all files

    Best regards,
    Yigit

    #328289

    I updated the theme on a staging copy, with no luck.

    #328291

    Hi!

    Do you mind creating a temporary admin login to stating one as well? and do you mind if we deactivate plugins for testing purposes?

    Regards,
    Yigit

    #328320
    This reply has been marked as private.
    #328341

    Hi!

    Have you overwritten all files when you updated the theme? there seem to be some issues with JS. Overwriting files should solve it

    Best regards,
    Yigit

    #328348

    All files were overwritten when I updated. I just tried overwriting the JS folder one more time to make sure it copied over properly, but the issue still remains.

    #328680

    Hey!

    This file is causing a JS error, line 35.

    Uncaught TypeError: undefined is not a function

    That normally happens when jQuery is not available as $ and needs to be called as ‘jQuery’.

    Best regards,
    Josue

    #328779

    Hi Josue,

    That was it, thanks! I didn’t realise my JS file would execute in the admin section I guess. What can you suggest to fix this? The error isn’t getting thrown client-side. I’m loading the file in functions.php in my child theme, like this –

    wp_enqueue_script( ‘fixed-sidebar’, $template_url.’/wp-content/themes/enfold-child/custom.js’, array(‘jquery’), 1, true);

    #329112

    Hey!

    Use an is_admin condition to prevent it from load it on the backend:

    if(!is_admin()){
    }

    Regards,
    Josue

    #329114

    It’s now throwing the error “is_admin is not defined”.

    EDIT: The layout builder is loading – but my custom script doesn’t work on the front-end now as it’s throwing the above error. Any ideas? Am I loading it in correctly? I’m clueless with PHP.

    • This reply was modified 10 years, 2 months ago by plugmedialtd.
    #329140

    Hi!

    Can you paste the full code you are using to enqueue the custom script?

    Please read the Codex article on how to use is_admin:
    http://codex.wordpress.org/Function_Reference/is_admin

    Regards,
    Josue

    #329161

    My bad, I was using the is_admin conditional in my JS rather than functions.php. Working perfectly now, thanks so much!

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Avia Layout Builder doesn't load’ is closed to new replies.