How can I prevent toplevel menu-items of a WordPress menu to be a link?
See for example this website: http://thesoftworld.com/
So “about” should not be a link, but “about > philosophy” should be. Also items with no subitems (e.g. “film”) should be a link.
If you want a top-level navigation item to act as a trigger for a drop down menu, but not actually link anywhere, hereâs how to do it in the WordPress menu system:
There exist a plugin to do the task:
Link
And you can do it manually by setting its HREF=”#” in the Code of the HTML Page.
I also found this:
How can I prevent a main menu item with sub items from being clickable in WordPress?
Almost exactly the same question. Sorry for duplicating questions.