• Resolved TheDyke

    (@thedyke)


    Hi, I’ve been gradually phasing out jQuery from my site builds. It struck me that I only rely on the jQuery library for toggling the menu. I’d suggest handling this functionality with vanilla JS on the frontend.

    Now I’m using this quick ‘n dirty solution;

    document.addEventListener("DOMContentLoaded", function() {
      var trigger = document.getElementById('rmp_menu_trigger-54');
      var container = document.getElementById('rmp-container-54');
      
      trigger.addEventListener('click', function() {
        trigger.classList.toggle('is-active');
        container.classList.toggle('rmp-menu-open');
      });
    });
    function custom_theme_functions() {
        wp_deregister_script( 'jquery' );
    }
    add_action( 'init', 'custom_theme_functions' );
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support sadiyakhanam

    (@sadiyakhanam)

    Hello @thedyke,

    Thank you for getting in touch with us.

    I want to assure you that I’ve already forwarded your query to our development team. They are currently reviewing it, and we’ll make sure to reach out to you as soon as we hear back from them.

    We truly appreciate your patience.

    Kind regards,
    RM Support Team

    Plugin Support Avi

    (@avi25)

    Hello @thedyke

    Our team had a look at your request, and I’d like to inform you that we are using jQuery for various functionalities such as animating toggles and menu containers, opening and closing submenus, disabling background scroll, automatically closing other submenus when one is clicked, adding and removing classes from menu item containers and toggles, and enabling keyboard navigation. Therefore, removing jQuery is not possible at the moment.

    However, we are considering ways to improve our product to make it more efficient with time. I really appreciate the effort you took to share your suggestion, and we’d really be happy to receive some amazing feedback from you about making Responsive Menu better.

    I’m marking this ticket as resolved at the moment, however, please be informed that we are always here to help you if you have any queries or suggestions.

    Regards,

    Avi

    • This reply was modified 5 months, 1 week ago by Avi.
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.