Tagged: avia layout builder
-
AuthorPosts
-
October 1, 2014 at 2:42 pm #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
October 1, 2014 at 2:50 pm #328125Hi 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/67209750Regards,
YigitOctober 1, 2014 at 4:34 pm #328248Hi Yigit,
Thanks for the reply. I tried both of your suggestions and neither made any difference unfortunately.
October 1, 2014 at 5:07 pm #328287Hey!
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,
YigitOctober 1, 2014 at 5:11 pm #328289I updated the theme on a staging copy, with no luck.
October 1, 2014 at 5:17 pm #328291Hi!
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,
YigitOctober 1, 2014 at 5:36 pm #328320This reply has been marked as private.October 1, 2014 at 5:55 pm #328341Hi!
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,
YigitOctober 1, 2014 at 6:05 pm #328348All 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.
October 2, 2014 at 7:01 am #328680Hey!
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,
JosueOctober 2, 2014 at 9:47 am #328779Hi 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);
October 2, 2014 at 5:28 pm #329112Hey!
Use an is_admin condition to prevent it from load it on the backend:
if(!is_admin()){ }
Regards,
JosueOctober 2, 2014 at 5:35 pm #329114It’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.
October 2, 2014 at 6:34 pm #329140Hi!
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_adminRegards,
JosueOctober 2, 2014 at 7:24 pm #329161My bad, I was using the is_admin conditional in my JS rather than functions.php. Working perfectly now, thanks so much!
-
AuthorPosts
- The topic ‘Avia Layout Builder doesn't load’ is closed to new replies.