When setting up WordPress navigation, I’m often asked how do you create a “placeholder” in the navigation menu. Typically the user wants to have a drop-down menu in the navigation, but there is no need to have the top level item actually be a page on the site. They just want it there so that the drop-down can be placed below it.
Thankfully, adding a link like that in WordPress is quite simple. Here’s what to do:
- In your WordPress admin, click on Appearance and then menus to bring up the navigation builder.
Then in the spot for “Link Text” enter the text you’d like to have appear in your navigation menu. Click the “Add To Menu” button.
Look on the left hand side for the section labeled links and click on it to open it up. In the field labeled “URL,” remove the http:// that’s there by default and replace it with a #
- Now WordPress will add the custom link to your navigation menu at the bottom. You can drag it higher in the order to place it. To make items a sub-menu below it, drag them slightly to the right and they indent. That indicates they are now sub-menu items to what’s above them.
- Once you’re finished, save your menu.
That should give you a placeholder item in your WordPress navigation menu. Should a user click on the placeholder item, they’ll stay on the same page (without a page reload) and will notice the items below that they can browse to.
If you’ve discovered any other useful tricks for navigation menu items, share them with us in the comments below.