{"id":73341,"date":"2012-03-05T15:58:01","date_gmt":"2012-03-05T20:58:01","guid":{"rendered":"http:\/\/wpmu.org\/?p=73341"},"modified":"2012-11-20T15:15:11","modified_gmt":"2012-11-20T20:15:11","slug":"daily-tip-how-to-create-a-wordpress-menu-link-that-isnt-clickable","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/daily-tip-how-to-create-a-wordpress-menu-link-that-isnt-clickable\/","title":{"rendered":"How to Create a WordPress Menu Link That Isn&#8217;t Clickable"},"content":{"rendered":"<p>Here&#8217;s a simple tip that may be useful to you if you&#8217;re just getting started with creating your own WordPress site. Sometimes when you&#8217;re setting up a dropdown menu with the built-in WordPress menu system you may want the top level item to be unclickable although still show the subnav items beneath.<\/p>\n<p>On the links that you don&#8217;t want to be clickable, you&#8217;ll want to create a custom link and set its href attribute to &#8220;#&#8221;. To be clear, it&#8217;s not that you cannot click this link. Rather, it&#8217;s that it doesn&#8217;t go anywhere or take you away from the current page.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-73355\" title=\"custom-link\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/03\/custom-link.png\" alt=\"Post image\" aria-hidden=\"true\" width=\"766\" height=\"497\" \/><\/p>\n<p>This is very easy and your dropdown menu should work as expected.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a quick and simple tip for use when creating custom links within WordPress menus.<\/p>\n","protected":false},"author":4099,"featured_media":73390,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[263],"tags":[87],"tutorials_categories":[],"class_list":["post-73341","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-menus"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/73341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/4099"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=73341"}],"version-history":[{"count":1,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/73341\/revisions"}],"predecessor-version":[{"id":216376,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/73341\/revisions\/216376"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/73390"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=73341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=73341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=73341"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=73341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}