Okay
  Public Ticket #3619642
Mobile Menu Overlay
Open

Comments

  • Anon started the conversation

    Hello, 

    Please see my mobile menu. 

    I have set the link to services to be on page scroll link with a #.

    But when I click on the link, the overlay doesnt close.

    Is there a fix for that?

    Thank you.

  •  869
    Neuron replied

    Hi,

    Can you please provide me with your wp-admin, I will have a quick look to see what's going on.

    Feel free to ask for anything you need.

    Kind Regards


  •   Anon replied privately
  •   Neuron replied privately
  • Anon replied

    Ok, you can add the code but please tell me what and where will you add it. 

  •   Neuron replied privately
  •   Anon replied privately
  • Anon replied

    Hello, any news?

  • Anon replied

    Guys, any news on this ticket?

  • Anon replied

    Guys, why is this ticket closed without solution?

  • Anon replied

    Three weeks and no answer...

  •  869
    Neuron replied

    Hi Anon,

    I really apologize for the late reply, somehow your ticket was marked as solved.

    Can you please try to install a plugin that allows you to add custom scripts to your site, you can try our "Insert Headers and Footers" plugin, and then add the following script to it.

    https://wordpress.org/plugins/wp-headers-and-footers/

    The script will close the popup as soon as you click on a menu item.

    <script>
    document.addEventListener("DOMContentLoaded", function() {
        // Selecting all menu items
        var menuItems = document.querySelectorAll(".menu-item > a");
        // Adding click event listener to each menu item
        menuItems.forEach(function(item) {
            item.addEventListener("click", function() {
                // Selecting the dialog-type-lightbox element and hiding it
                var dialog = document.querySelector(".dialog-type-lightbox");
                if (dialog) {
                    dialog.style.display = "none";
                }
            });
        });
    });
    </script>

    Feel free to ask for anything you need.

    Kind Regards


  • Anon replied

    Hi,

    I did what you said but no changes.

    First i put it into header and then into body. 

    The menu is still the same.

    Please take a look.

    Also, there might be a problem with neuron builder.