wordpress-navigation-item-without-link

By default, WordPress menus require each item added to link to another page within your site, another post, category or to a custom link.

However, especially when creating a drop-down menu, sometimes you want to add navigation items that only help organize menu items–without linking somewhere else. Sometimes you may only want to add a title to your navigation that provides context to your sub-navigation items, and you don’t have (or don’t need) a separate page for that item.

For example, have a look at our main navigation menu above. To provide an intuitive user experience, we organized our most popular Tips-n-Tricks pages and our Business Tracker solution page in a “Stuff” menu area. We don’t need a separate page for our “Stuff,” it wouldn’t make much sense. This area is just for our navigation, and the “Stuff” title only provides context to organize these links in a way that provides a better user experience.

To solve this issue, you can either add a link to a logical page within your site (such as the first item of the drop-down list), or simply add an item without a link at all. In this post, I will walk you through the process of adding a navigation item to your WordPress menu without linking to another page or custom link.

First off, let’s go to the menu you want to edit (Appearance » Menus).

Then, add a “custom link” item. Add # as the URL. Also make sure to add the label text you want displayed in your navigation menu. But wait! You said I didn’t have to add a link! Just trust me, we’ll remove the link in a second. Click the “Add to Menu” button, and you’ll see the new item has been added to your menu on the right. Drag the new item to whatever position you want it to display in your navigation.

add-custom-link-wordpress-menu

Next, simply remove the “#” from the custom link item. If you don’t see the link, you may need to click the drop down arrow on the far right of the menu item.

remove-the-link-from-wordpress-menu-item

After you remove the link, remember to save your menu by clicking the blue “save menu” button on the bottom of the page. That’s it! Refresh your site in a new tab, and your new menu will display, showing your new menu item without a link.

By |2018-11-01T17:20:45+00:00June 15th, 2015|Categories: Web Tips-n-Tricks|0 Comments

About the Author:

Leave A Comment

Website Content and Design

Website Content and Design

Copyright © eXcelisys, Inc., all rights reserved. No unauthorized use permitted; all derivative works must have prior approval. All content – including design and copy within the eXcelisys website is protected under international copyright laws. eXcelisys will prosecute ANYONE who borrows or steals any derivative or facsimile of the content and design of eXcelisys’ website without written approval or permission. Read More

Trademarks

Trademarks

FileMaker®, FileMaker Pro® and the referencing FileMaker® logos are trademarks of FileMaker, Inc., in the United States, the European Union and other countries. MySQL® and MySQL® Logos are registered trademarks of MySQL AB in the United States, the European Union and other countries. The PostgreSQL elephant logo “Slonik” is a registered trademark of the PostgreSQL Global Development Group. Read More

Privacy Policy

Privacy Policy

We will never give or sell your email address or contact information to anybody, for any reason. There are no eXceptions. We do not make our customer list available to anyone outside of eXcelisys at all, ever.

There is no way that submitting your information to eXcelisys will result in you receiving “spam” or other junk mail from eXcelisys if you have requested us not to do so. Read More