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

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

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
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 experts 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 »


  1. Brendan Dunne says:

    I used this method to solve my problem and it works great thanks.

    However, the created menu header is not a page so when I go to map the sub pages, how do I structure them?

  2. Marek says:


    I created a custom menu item in which I want to function as a label only, so I deleted the URL from that item, but it still shows a different color on mouse-over as if it was a link. How do I disable that hover effect from that item?

    You can see it here: and the item is the ‘Written About Braunstein’s:’ in the menu below the logo.


  3. Huzni Saud says:

    great work mate

  4. Penelope Whiteley says:

    I didn’t understand this … are there any more images that maybe show the finished product?

  5. Norbert says:

    Thanks, it is brilliant and works!!!!

  6. WILLIAM says:

    Thank you, it works like a charm.

  7. Rui says:

    Using Appearance>Menus,create a Custom Links item with the URL as

    javascript: void(0);

    This is the a great way of solving that problem :)

  8. Peter says:

    This has bugged my for a while but never did anything about it. Googled and bingo, sorted. So simple thank you.

  9. Annelisse Miller says:

    Worked Perfect! So easy to follow! Thank you!

  10. teri matelson says:

    can you make a custom link, added to the primary navigation, open in a new window?

  11. Matthias says:

    Thanks – really helpful!

  12. Rajit says:

    Hi, How do I modify the styling of custom links? I want to separate two sets of menu items with separate non-clickable headings.


  13. Graham says:

    Cheers for that. We were really stuck. Knew it could be done, but didn’t know how…until now. Yer a star :)

  14. Rosie says:

    Thank you!! This is exactly what I needed to do and it has worked a treat.

  15. Sanjay Nair says:

    So simple! Just what I needed. Thank you.

  16. Hayley says:

    Thank you! Exactly what I needed!

  17. Carol M. Smith says:

    Thanks … but I do not want the words “Menu Item” to be in the menu … Can I change the name “Menu Items” ?

  18. Leanne says:

    exactly what I needed to know! thank you!!

  19. Bob Varaleau says:

    I was using categories to do this but this is much better. There is one problem that you might be able to help me with.

    If a viewer was to click on the custom link the custom menu link will remain high lighted until you click on a sub item or some where else on the page. It is a minor thing but if it could be rectified it would make this fix for the menu even better. Is it possible to make this custom link menu button non-clickable using CSS??

  20. Menno van der Krift says:

    Cheers! Works like a charm.

  21. Mike says:

    Oddly this doesn’t work on the iPad. Before the submenu can appear, it asks if you want to save the image? Works perfectly well when the drop down button has a normal page link, i.e, the menu item is drawn from ‘Pages’.

  22. George says:

    This is great – it works. However, the title of my drop-down menu has changed colour – from white to blue. Can anyone explain how I can correct this in wordpress?

  23. jhodgski says:

    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?

  24. viktoriana says:

    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. :/

  25. viktoriana says:

    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 …

  26. bb says:

    I love wpbeginner! Thanks for this tweak, cheers

  27. Rob Lowndes says:

    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?

  28. Wayne Gerald says:

    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.

  29. kuldip says:

    Thanx dude it’s helpful for me

  30. Muhlis says:

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

  31. grrprep says:

    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 says:

      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.

  32. Janet says:

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

  33. Jake Tyler says:

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

  34. Chris says:

    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?


  35. Buck says:

    Nice tut, i never know this is possible.

  36. Beth Pittman says:

    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?

  37. Lorne says:

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


  38. SmittenbyBritain says:

    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!

  39. bob says:

    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?

    • Editorial Staff says:

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

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.