New Landing How can we help? Themeforest Theme Support Dante jQuery not properly included

Viewing 14 posts - 1 through 14 (of 14 total)
  • Posted in: Dante
  • #328930
    matthis_risk
    Member

    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.
    #329061
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi 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

    #330283
    Jeff Farthing
    Member
    Post count: 11

    I am experiencing this exact same issue. jQuery is definitely not being loaded. Disabled all plugins and the problem still persists. Any ideas?

    #330308
    David Martin – Support
    Moderator
    Post count: 20834

    Please add a URL and theme version number reference.

    Do you have any console log errors you can see?

    Thanks.

    #330372
    Jeff Farthing
    Member
    Post count: 11

    There 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?

    #330375
    David Martin – Support
    Moderator
    Post count: 20834

    This 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.

    #330376
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi @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.
    https://cl.ly/1i1G0o2L0a43/[36a3ec5eb7827350a3215e51ab0a2203]_Image%202017-06-28%20at%202.56.44%20PM.png

    -Rui

    #330378
    Jeff Farthing
    Member
    Post count: 11

    jQuery 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.

    #330384
    Jeff Farthing
    Member
    Post count: 11

    Furthermore, 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' );
    } );
    
    #330387
    Jeff Farthing
    Member
    Post count: 11

    It seems my last reply with the issue/solution was marked as spam for some reason…

    #330389
    David Martin – Support
    Moderator
    Post count: 20834

    As 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.

    #330390
    Jeff Farthing
    Member
    Post count: 11

    David, I just posted the problem (bug in Dante’s code) in my reply above that was marked as spam…

    #330408
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Thanks to Jeff help, we will need to replace the 'jquery' by array( 'jquery' ) inside the functions.php in this block of code.https://cl.ly/121q431S2W2J/[f72876480bcb7936d08eed43351e2492]_Image%202017-06-28%20at%204.46.06%20PM.png

    -Rui

    #330410
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779
Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register