New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elementor seems to require jQuery but doesn't include it #839
Comments
|
Hey, I want to check something.. Can you add depend |
|
That doesn't seem to have any effect, same errors. I've also checked the window object in console just now, it seems that despite the error messages I'm seeing, there is a jQuery object on it - Perhaps this is added after the parts of Elementor ask for it. |
|
Fixed! |
|
Nice one! |
|
And how to fix this? Latest version of the plugin.
|
|
Hi everybody, I'm getting the same error as @luanpiegas
Did anybody find a proper solution for this? Thanks in advance! |
|
@Xulvi Please try default theme + deactivate all other plugins.. |
|
how this one can be soved ? |
Description
I am developing a theme and using Elementor (which is by the way, awesome). At this point my theme is very, very basic, and I don't even have any custom javascript running. It's effectively the bare minimum template files, plus style.css and functions.php, in which I'm doing a few standard things like switching to HTML5 format.
When I try to edit my pages though, I get the following in console, and various things like the widget delete menu do not show:
So I followed the debugging advice:
Eventually I figured perhaps my theme is too simple...seems unlikely but worth a shot. Since I'm not including any javascript, I copy twentysixteen's include for their functions.js. My own functions.js file is empty (it just says
;console.log("yo!");in it), but adding the include fixes it!The console errors go away, and Elementor is working happily.
So, this is what I had in my functions.php before:
And this is what solves the problem:
Functions.js need not have anything in particular in it, but you must include jquery in the dependency array.
I know it's unusual for people to not have jquery in their theme at least once, but it is possible to do so and still have a functioning theme, so you can't rely on JQ being present.
Steps to reproduce
Environment
== Server Environment ==
Operating System: WINNT
Software: Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4
MySQL version: 5.5.25
PHP Version: 5.4.4
PHP Max Input Vars: 1000
PHP Max Post Size: 8M
GD Installed: Yes
Elementor Library: connected
== WordPress Environment ==
Version: 4.6.1
Site URL: http://stitchsainteluce.loc
Home URL: http://stitchsainteluce.loc
WP Multisite: No
Max Upload Size: 8 MB
Memory limit: 40M
Permalink Structure: /%year%/%monthnum%/%day%/%postname%/
Language: en-GB
Timezone: Europe/London
Debug Mode: Active
== Theme ==
Name: StitchSainteLuce
Version: 1.0.0
Author: Daniel Wood
Child Theme: No
== User ==
Role: administrator
WP Profile lang: en_GB
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2914.3 Safari/537.36
== Active Plugins ==
Elementor
Name: Elementor
Version: 0.10.7
Author: Elementor.com
The text was updated successfully, but these errors were encountered: