Make wp_nav_menu() Items Unclickable

There have been many requests on the WP Support Forums asking how to make a menu item unclickable.

The stock answer is to use a Custom Link with a URL of a single hash mark (#).  This does not really make the link unclickable, it just makes it go nowhere when clicked.

It is fairly easy to make the link ‘appear‘ unclickable using only CSS.  That will be shown after a method to make the links really unclickable. Continue reading