{"id":1515,"date":"2020-05-20T13:30:00","date_gmt":"2020-05-20T17:30:00","guid":{"rendered":"https:\/\/www.boldgrid.com\/support\/?p=1515"},"modified":"2023-06-14T13:12:53","modified_gmt":"2023-06-14T17:12:53","slug":"disable-top-menu-item-link","status":"publish","type":"post","link":"https:\/\/www.boldgrid.com\/support\/boldgrid-themes\/disable-top-menu-item-link\/","title":{"rendered":"How to Disable a Top Menu Item Link"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<?xml encoding=\"utf-8\" ?><html><body><div class=\"boldgrid-section\">\n<div class=\"container\">\n<div class=\"row\">\n<div class=\"col-md-12 col-xs-12 col-sm-12\">\n<p><strong>Menus<\/strong> are a very important part of <strong>website navigation, <\/strong>especially when using WordPress. Sometimes you may want to create a submenu to one or more menu items. In some of these cases, the top link acts more as a category name and will not need to link to a page of its own. This article demonstrates how to <a href=\"https:\/\/www.boldgrid.com\/support\/boldgrid-themes\/working-with-menus-in-boldgrid\/\">create a top level menu item<\/a>, and how to disable that top menu item link in WordPress. This feature is available in all of our <a href=\"https:\/\/www.boldgrid.com\/wordpress-themes\/\">WordPress themes<\/a> found in our <a href=\"https:\/\/www.boldgrid.com\/wordpress-website-builder\/\">WordPress website builder<\/a> product.<\/p>\n<h2 id=\"disabling-the-link-attribute-to-a-top-level-menu-item\">Disabling the Link Attribute to a Top Level Menu Item<\/h2>\n<ol>\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/boldgrid-inspirations-plugin-product-guide\/logging-in\/\">Log into your WordPress Dashboard<\/a>.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/1515-customize-menu.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-3547 size-full\" title=\"Click to enlarge this screenshot image.\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/1515-customize-menu.png\" alt=\"Customize link from WordPress admin\" width=\"157\" height=\"275\"><\/a>Click on the <strong>Customize<\/strong> link from the left hand menu.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<\/ol>\n<ol>\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/customizer-menus.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-11060 size-full\" title=\"Click to enlarge this screenshot image.\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/customizer-menus.png\" alt=\"Customizer Menus option highlighted\" width=\"301\" height=\"434\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/customizer-menus.png 301w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/customizer-menus-208x300.png 208w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/customizer-menus-250x360.png 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/customizer-menus-125x180.png 125w\" sizes=\"auto, (max-width: 301px) 100vw, 301px\" \/><\/a>Click on the <strong>Menus<\/strong> option.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/customizer-menus-primary.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-11063 size-full\" title=\"Click to enlarge this screenshot image.\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/customizer-menus-primary.png\" alt=\"Customizer Menus primary menu selection highlighted\" width=\"302\" height=\"380\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/customizer-menus-primary.png 302w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/customizer-menus-primary-238x300.png 238w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/customizer-menus-primary-250x315.png 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/customizer-menus-primary-143x180.png 143w\" sizes=\"auto, (max-width: 302px) 100vw, 302px\" \/><\/a>Select the menu you want to work with.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/primary-menu-add-item-button.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-11064 size-full\" title=\"Click to enlarge this screenshot image.\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/primary-menu-add-item-button.png\" alt=\"Primary menu Add Item button highlighted\" width=\"287\" height=\"462\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/primary-menu-add-item-button.png 287w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/primary-menu-add-item-button-186x300.png 186w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/primary-menu-add-item-button-250x402.png 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/primary-menu-add-item-button-112x180.png 112w\" sizes=\"auto, (max-width: 287px) 100vw, 287px\" \/><\/a>Click on the <strong>Add Items<\/strong> button.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/add-item-custom-link.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-11073\" title=\"Click to enlarge this screenshot image.\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/add-item-custom-link.png\" alt=\"Add Item Custom Link fields highlighted\" width=\"301\" height=\"225\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/add-item-custom-link.png 301w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/add-item-custom-link-300x225.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/add-item-custom-link-250x187.png 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/add-item-custom-link-241x180.png 241w\" sizes=\"auto, (max-width: 301px) 100vw, 301px\" \/><\/a>Click on the <strong>Custom Link<\/strong> option. Name it (<em>Link Text<\/em>) and give it a <em>URL<\/em>.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/custom-link-menu-item-add-to-menu-button.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-11074\" title=\"Click to enlarge this screenshot image.\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/custom-link-menu-item-add-to-menu-button.png\" alt=\"Custom Links Add to Menu button highlighted\" width=\"301\" height=\"169\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/custom-link-menu-item-add-to-menu-button.png 301w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/custom-link-menu-item-add-to-menu-button-300x169.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/custom-link-menu-item-add-to-menu-button-250x140.png 250w\" sizes=\"auto, (max-width: 301px) 100vw, 301px\" \/><\/a>Next, click on <strong>Add to Menu<\/strong>.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/drag-sub-menu-items.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-11075 size-full\" title=\"Click to enlarge this screenshot image.\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/drag-sub-menu-items.png\" alt=\"Drag n Drop Sub-Menu Clients Page menu item indented below Top Menu Custom Link menu item\" width=\"289\" height=\"128\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/drag-sub-menu-items.png 289w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/drag-sub-menu-items-250x111.png 250w\" sizes=\"auto, (max-width: 289px) 100vw, 289px\" \/><\/a>Now, drag the items you want in the sub menu under the new custom link item. Sub-menu items are indented to easily identify the menu structure.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/custom-link-edit-menu-item.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-11076 size-full\" title=\"Click to enlarge this screenshot image.\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/custom-link-edit-menu-item.png\" alt=\"Custom Link edit menu item arrow highlighted\" width=\"270\" height=\"258\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/custom-link-edit-menu-item.png 270w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/custom-link-edit-menu-item-250x239.png 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/custom-link-edit-menu-item-188x180.png 188w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>Click on the <em>Custom Link<\/em>&nbsp;edit arrow.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/top-menu-blank-url-field.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-11077 size-full\" title=\"Click to enlarge this screenshot image.\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/top-menu-blank-url-field.png\" alt=\"Top Menu Custom Link blank URL field highlighted\" width=\"268\" height=\"258\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/top-menu-blank-url-field.png 268w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/top-menu-blank-url-field-250x241.png 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/top-menu-blank-url-field-187x180.png 187w\" sizes=\"auto, (max-width: 268px) 100vw, 268px\" \/><\/a>Remove the URL from the <strong>URL<\/strong> field.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/save-and-publish-button.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-11078 size-full\" title=\"Click to enlarge this screenshot image.\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/save-and-publish-button.png\" alt=\"Save and Publish button highlighted\" width=\"289\" height=\"137\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/save-and-publish-button.png 289w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/save-and-publish-button-250x119.png 250w\" sizes=\"auto, (max-width: 289px) 100vw, 289px\" \/><\/a>Click the <strong>Save &amp; Publish<\/strong>&nbsp;button.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<\/ol>\n<p>Now, when visiting your WordPress website, the <strong>Top Menu<\/strong> menu item will reveal the sub-menu and not function as a link by itself. This is helpful if you want to minimize the number of pages you want to manage, and focus on your sales or information pages more.<\/p>\n<table>\n<tbody>\n<tr>\n<th>Before:<\/th>\n<th>After:<\/th>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/primary-menu-before.png\"><img loading=\"lazy\" decoding=\"async\" class=\"std_ss alignright wp-image-11080 size-full\" title=\"Click to enlarge this screenshot image.\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/primary-menu-before.png\" alt=\"Primary Menu Before\" width=\"536\" height=\"468\" align=\"right\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/primary-menu-before.png 536w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/primary-menu-before-300x262.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/primary-menu-before-250x218.png 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/primary-menu-before-206x180.png 206w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/primary-menu-before-344x300.png 344w\" sizes=\"auto, (max-width: 536px) 100vw, 536px\" \/><\/a><\/td>\n<td><\/td>\n<td><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/primary-menu-after.png\"><img loading=\"lazy\" decoding=\"async\" class=\"std_ss alignright wp-image-11081 size-full\" title=\"Click to enlarge this screenshot image.\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/primary-menu-after.png\" alt=\"Primary Menu After highlighted\" width=\"419\" height=\"484\" align=\"right\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/primary-menu-after.png 419w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/primary-menu-after-260x300.png 260w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/primary-menu-after-250x289.png 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2016\/05\/primary-menu-after-156x180.png 156w\" sizes=\"auto, (max-width: 419px) 100vw, 419px\" \/><\/a>\n<p>&nbsp;<\/p><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"disable-a-menu-in-wordpress\">Disable a Menu in WordPress<\/h2>\n<p>The easiest way to disable a menu in WordPress is to remove the menu from it&rsquo;s assigned location in your WordPress dashboard.<\/p>\n<p>Navigate to <strong>Appearance &gt; Menus &gt; Manage Locations<\/strong> to see all menu locations in your active theme. Below we have 3 menus &ndash; Main Menu, Social Icons, and Sticky Main Menu. If you do not want a menu to appear in a location, change the dropdown to read <strong>Select a Menu<\/strong>. In the example below, the Sticky Main Menu location will not display a menu. When you&rsquo;re finished, click the blue <strong>Save Changes<\/strong> button.<\/p>\n<p><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2020\/05\/dashboard-menus.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-39894\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2020\/05\/dashboard-menus.jpg\" alt=\"Working with WordPress Menus\" width=\"1233\" height=\"549\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2020\/05\/dashboard-menus.jpg 1233w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2020\/05\/dashboard-menus-300x134.jpg 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2020\/05\/dashboard-menus-1024x456.jpg 1024w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2020\/05\/dashboard-menus-768x342.jpg 768w\" sizes=\"auto, (max-width: 1233px) 100vw, 1233px\" \/><\/a><\/p>\n<p>If you&rsquo;d prefer, advanced users can unregister a menu location from the functions.php file. Below is an example to unregister a menu named <b>primary<\/b>, taken from the WordPress <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/unregister_nav_menu\/\">official documentation<\/a>.<\/p>\n<pre>unregister_nav_menu( 'primary' );<\/pre>\n<p>We recommend using the <a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\">Code Snippets<\/a> plugin to make changes to functions.php. Any changes made in the core theme files could be overwritten when the theme updates.<\/p>\n<h2 id=\"test-wordpress-updates-safely\">Test WordPress Updates Safely<\/h2>\n<p>If you get nervous making php changes we have a safe environment for you! You can create a <a href=\"\/free-wordpress-sites-demo\/\">free WordPress installation<\/a> with BoldGrid&rsquo;s Cloud WordPress service. This demo website is in the cloud, not tied to your live site. This means any changes you make in the cloud version of your website will NOT show on your live site.<\/p>\n<p>Use a <a href=\"\/wordpress-backup-plugin\/\">WordPress backup plugin<\/a> to clone your site to the cloud. After making your changes, <a href=\"\/support\/total-upkeep\/using-total-upkeep-to-migrate-wordpress-for-staging\/\">take another backup and restore on your live site<\/a>.<\/p>\n<p>Congratulations! You now know how to create a top link menu item, and disable it so that it only works as a dropdown for your menu. This particular article explains how to make this change using our <a href=\"https:\/\/www.boldgrid.com\/wordpress-website-builder\/\">WordPress Website builder<\/a>, BoldGrid Inspirations and our classic WordPress Themes. If you would like to have a few more options for your WordPress website, feel free to check out our new SuperTheme Crio &ndash; A <a href=\"https:\/\/www.boldgrid.com\/crio-wordpress-theme-for-business\/\">WordPress theme for business<\/a>.\n<\/p><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>Menus are a very important part of website navigation, especially when using WordPress. Sometimes you may want to create a submenu to one or more menu items. In some of these cases, the top link acts more as a category name and will not need to link to a page of its own. This article [&hellip;]<\/p>\n","protected":false},"author":361,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"bgseo_title":"How to Disable a Top Menu Item Link | BoldGrid","bgseo_description":"This article shows how to disable a top menu item link.  Sometimes you may want to create a submenu to one or more menu items.","bgseo_robots_index":"index","bgseo_robots_follow":"follow","footnotes":""},"categories":[764],"tags":[],"class_list":["post-1515","post","type-post","status-publish","format-standard","hentry","category-boldgrid-themes"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/1515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/users\/361"}],"replies":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/comments?post=1515"}],"version-history":[{"count":45,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/1515\/revisions"}],"predecessor-version":[{"id":92133,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/1515\/revisions\/92133"}],"wp:attachment":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/media?parent=1515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/categories?post=1515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/tags?post=1515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}