Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › jQuery not properly included
New Landing › How can we help? › Themeforest Theme Support › Dante › jQuery not properly included
- This topic has 13 replies, 5 voices, and was last updated 6 years by Rui Guerreiro – SUPPORT.
-
Posted in: Dante
-
June 15, 2017 at 2:35 pm #328930matthis_riskMember
Dear Support-Team,
Unfortunately we get the following error after activating the Dante theme. It looks like there is no include of jQuery, so that the include of bootstrap does not work. I also don’t find any include for jQuery in the generated webpage source code. Can you assist?
Thank you very much in advance
Attachments:
You must be logged in to view attached files.June 16, 2017 at 9:14 pm #329061Hi matthis_risk,
jQuery is 100% enqueued correctly within the theme. The issue will be either due to a plugin issue, or an issue with your WordPress install. Try disabling any plugins, but then maybe try a re-install.
Thanks,
– Ed
June 27, 2017 at 11:27 pm #330283I am experiencing this exact same issue. jQuery is definitely not being loaded. Disabled all plugins and the problem still persists. Any ideas?
June 28, 2017 at 10:04 am #330308Please add a URL and theme version number reference.
Do you have any console log errors you can see?
Thanks.
June 28, 2017 at 2:38 pm #330372There is no URL as this is currently in local development only. The theme version is the latest, 3.3.61.
I just did another test, however, and installed the theme on a clean WP install. It works as expected. The project where it is not working is being upgraded from an older version of the theme. So, it somehow appears to be caused by upgrading the theme. Perhaps a settings change/missing setting?
June 28, 2017 at 2:49 pm #330375This is not something I can replicate. I’d need a URL to debug your installation further.
You can make a local dev site publicly available via a URL using this app: https://local.getflywheel.com/.
Thanks.
June 28, 2017 at 2:54 pm #330376Hi @jfarthing84,
I don’t think so, jQuery is loaded by WordPress so definetly something wrong in that specific WordPress instalation.
Try to re-install the current WordPress version.
-Rui
June 28, 2017 at 3:01 pm #330378jQuery is not loaded by WordPress unless something enqueues it.
It is loaded and works as expected with Dante 2.62 but once I replace those files with those from 3.3.61, it no longer works. jQuery is nowhere to be found in the source. Only a console full of errors and no working javascript because of it’s absence.
June 28, 2017 at 3:19 pm #330384Furthermore, if I create an MU plugin with the following code, jQuery is enqueued and everything works as expected:
add_action( 'plugins_loaded', function() { wp_enqueue_script( 'jquery' ); } );
June 28, 2017 at 3:29 pm #330387It seems my last reply with the issue/solution was marked as spam for some reason…
June 28, 2017 at 3:32 pm #330389As above, i’d need a URL to debug your installation further.
You can make a local dev site publicly available via a URL using this app: https://local.getflywheel.com/.
Thanks.
June 28, 2017 at 3:35 pm #330390David, I just posted the problem (bug in Dante’s code) in my reply above that was marked as spam…
June 28, 2017 at 4:46 pm #330408Thanks to Jeff help, we will need to replace the
'jquery'
byarray( 'jquery' )
inside the functions.php in this block of code.-Rui
June 28, 2017 at 4:51 pm #330410Here is the modified file.
https://www.dropbox.com/s/4pvt352blbf67tb/functions.php?dl=0-Rui
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.