Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

How to Add Titles in WordPress Menu Without Linking to a Page

Last updated on by
Follow WPBeginner on YouTube
How to Add Titles in WordPress Menu Without Linking to a Page

Recently one of our users asked us if there was a way to add titles in WordPress menu without adding a link. By default, WordPress menu requires each menu item linked to a page or custom link. However when creating a drop down menu, you may you want to add a title for sub-menus without linking it to a specific page. For example, you can have a categories dropdown where you want to have the text categories be the title of the menu. In this article, we will show you how to add titles in WordPress menu without linking to a page.

Creating a menu item without link

First thing you need to do is add a new menu item in your menu. You can do that by going to Appearance » Menus. You want to add a custom link so give it the label you want. In the URL field, enter the # sign. Once done, click on the Add to Menu button. Save your menu once this custom link is added to the menu.

Adding a custom link to the menu without URL

Now click on the drop down arrow next to this custom link to edit this menu item. Go ahead and remove the pound sign from the URL field and save your menu. If you go to your live website, then you will see a menu item without link. You can add sub menus to this menu item and link them to any page or custom link you want.

Removing # sign and creating a menu without any link

We hope that this article helped you add titles in WordPress menu without linking to a page or any URL. If you have any feedback or questions, then please leave a comment below.


Editorial Staff at WPBeginner is a team of WordPress lovers led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »
  • jhodgski

    Thanks for this, but wouldn’t it result in invalid HTML as I see you end up with an anchor/link element which has no href attribute. It would also be semantically incorrect to use and anchor/link element if the item isn’t actually a link. Is there a better way?

  • viktoriana

    This didn’t work in my case :/ Have “converted” a menu which was a ul list of links into a registered wp_nav_menu and now the categories which where listed as wp_list_categories do NOT appear under the custom link as they used to. Somehow wp_list_categories has to be added still into the wp_nav_menu , and it’s not at all that simple as this post suggests. :/

  • viktoriana

    except this is not working :( followed exactly what you’ve written, added two categories us subpages, but submenu is not showing.
    there must be some wp_list_categories thingy messing up my wp_nav_menu …

  • bb

    I love wpbeginner! Thanks for this tweak, cheers

  • Rob Lowndes

    Just what I am looking for. But when I place some pages as sub items under the new blank menu item it looks great until I save the menu and then those pages autmatically revert to the main menu! In other words WP 3.7.1 is not allowing me to save any sub menus to the new item. Can someone help me?

  • Wayne Gerald

    I did this on my extensive training website. However, I ran out of custom links, meaning I reached WordPress’s custom link limit. Going past this limit, the navigation menu no longer saves. So how do bypass this custom link limit? Is there a plugin? If so, I can’t find it.

    Any help would be much, much appreciated.

  • kuldip

    Thanx dude it’s helpful for me

  • Muhlis

    this is what i looking for to edit category dropdown menu in my website resellerhunter.com, thanks for helping.

  • grrprep

    I want to do something reverse. I want to add pages but not let them appear in menus. I have around 20 pages and do not want 20 sub links in my menu. help is appreciated.

    • CHRIS

      Go to the menus and uncheck the “Automatically add new top-level pages” Now if you want any page to appear at menu you will have to add by yourself.

  • Janet

    Thank you! I’ve always wondered how to do this.:)

  • Jake Tyler

    That’s some nice tut, really, thanks so much.

  • Chris

    Is there any way when we left the mouse on that menu item who hasent got any link, not to change the mouse cursor? Practicaly the browser not to understand as a link?

    Thanks.

    • Mike Ott

      You could just target the element in CSS with:

      cursor:crosshair;

  • Buck

    Nice tut, i never know this is possible.

  • Beth Pittman

    Thank you for this post! Is it just me but does anyone else have trouble getting the drop down arrows on the menu screen to open up? When I click on the arrow, it simply moves the menu item down on the menu. I have to repeatedly do this until, finally, it will open. Any tips?

  • Lorne

    How would accomplish (change) the same thing on a web site WP v3 with already existing Menus?

    Thanks

  • SmittenbyBritain

    Thanks for the tip. I was trying to figure out how to do that. I just linked things back to home if I didn’t have a url. This works great!

  • bob

    what if you have already established a large menu bar? can you go back and change the first menu bar title to not connect to a page?

    • http://www.wpbeginner.com Editorial Staff

      Yes, you can always adjust the menus. This technique is particularly helpful if you want to add dropdown items in your long menu bar.