New Landing How can we help? Themeforest Theme Support Dante Loading jQuery breaks mobile menu

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Dante
  • #190359
    bo
    Member
    Post count: 10

    Hi,

    WP, Dante, and jQuery are all up to date on the website. My issue is that when I place the jQuery script in my <head>, the mobile menu no longer works. What changes is that when I press the mobile menu icon (on any device as long as the browser width is below the certain threshold) my url simply adds a ‘#’ at the end but doesn’t actually do anything. All other a href=”” links work correctly.

    The jQuery script that I am using is:
    <script type=”text/javascript” charset=”utf8″ src=”//code.jquery.com/jquery-1.11.3.min.js”></script>
    Which makes all the jQuery work on my site and it is only this one issue that pops up.

    Thanks,
    Bradley

    #190413
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Why are you loading this Jquery? While you already loaded Jquery by default. Two Jquery will cause to many issues.
    Thanks
    Mohammad

    #191291
    bo
    Member
    Post count: 10

    The jQuery plug-in for tables doesn’t work on my wordpress install unless I load that script to load jquery in the <head>.

    The jQuery plug-in is called DataTables and here is the page for how to set up the installation for DataTables:

    https://www.datatables.net/manual/installation

    Thanks,
    Bradley

    #191311
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please find this code:-

    $(document).ready( function () {
        $('#table_id').DataTable();
    } );
    
    And change with:-
    jQuery(document).ready( function ($) {
        $('#table_id').DataTable();
    } );

    Now it will work without loading another jquery code.

    Thanks
    Mohammad

    #191682
    bo
    Member
    Post count: 10

    Awesome! Thank you so much!

    #191770
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome. I’m glad that issue resolved.
    Thanks 🙂
    With Best Regards
    Mohammad

Viewing 6 posts - 1 through 6 (of 6 total)

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

License required for one of the following items
Login and Registration Log in · Register