How to disable WordPress parent menu link

Working with WordPress menus, I wanted a top-level navigation element to act as a trigger for a drop-down menu. 

It took me some time to figure out how to make this navigation element not redirect anywhere, but it was so easy. 


You need to take the following steps:

1. Insert a custom link with any link address and label that you want.

2. Click on the 'Edit Menu Item' and delete the link that you insert previously.

3. Create the sub-menu with the wanted links.

4. Save.


That's all, nothing more, nothing less.

Roxana Anghel
31 Mar 2022
« Back to post