Viewing 2 reply threads
You must be logged in to reply to this topic.
How do I deactivate drop down menus parent menu? I have this kind of structure:
Toppest Parent
|
Child
Child
I don’t want to set any link for the “Toppest Parent”. Only those Childs have links forward. How I set that parent element as an empty one which just opens that dropdown menu?
Actually I got this after all, I just added these to my css box (first is for desktop and second one is for mobile):
#menu-item-3410 > a {
pointer-events: none;
}
#responsive-responsive-menu-item-3410 > a {
pointer-events: none;
}
Hello,
Sorry for the late reply.
Nice to see you found a solution, but you need to know that this code targets one specific menu item. If you happen to add more parent items, it will not work on them.
Try this code instead:
.menu-small ul.menu .menu-item-has-children {
pointer-events: none;
}
for the mobile menu. This targets all items that have sub-menus.
And this:
.menu-item-has-children {pointer-events: none;}
for the normal desktop menu.
Best regards!
You must be logged in to reply to this topic.