Select Page

latest Divi Mega Menu update

Home Forums Support latest Divi Mega Menu update

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • Helpful
    Up
    0
    Down
    Not Helpful

    Hi

    a recent update allows the parent menu item of a mega menu to act as a link if clicked.
    I can see some people may want the parent menu to act as a link – I dont – is there a way to stop the parent menu being a link? All it does is load the mega menu item as a page – I dont want this to occur.

    I took a quick look but cant find anywhere to stop this happening. launching this site in two days and this is an unwelcome change.

    Thanks

    Helpful
    Up
    0
    Down
    Not Helpful

    yes it was changed as people wanted this.

    Ok – I will have to find a solution for both – maybe a setting. In the meantime can you add this javascript to your integrations tab in the body section (divi settings)

    
    <script>
    jQuery(document).ready(function( $ ) {      
    $(document).on('touchstart click', ".de-mega-menu-item" , function(event){
                  event.preventDefault();
          });
    });
    </script>
    

    Does this work?

    Helpful
    Up
    0
    Down
    Not Helpful

    Hi
    Yes this solution works – thanks!

    Helpful
    Up
    0
    Down
    Not Helpful

    Would be useful to toggle this on or off so if you could add as a setting please?

    Helpful
    Up
    0
    Down
    Not Helpful

    Sure – I will add this as a toggle on/off setting.

    Thanks
    Pete

    Helpful
    Up
    0
    Down
    Not Helpful

    I have added this now, It is in Divi Mega Menu Settings called “Stop click through to parent menu items?”.

    Let me know if you have any issues 😀

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

You must be logged in to reply to this topic.