Contents
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. 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.
How to add custom menus in WordPress themes?
The theme location is the name that we selected in the previous step. The container class is the CSSclass that will be added to your navigation menu. Your menu will appear as a plain bulleted list on your website. You can use the CSS class .custom_menu_classto style your menus.
How do you add a link to a menu in WordPress?
When the Customize page opens, select Menus from the left side panel. Select the Menu you want to edit, scroll to the bottom of the Menu values, next to the underscored ‘Reorder’ option, click the + Add Items icon. A new menu will appear, click on the Custom Links tab at the top. Try again from here.
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.
Whatever the reason may be, adding an unclickable link to your WordPress menu is incredibly easy. First, go to your menu via Appearance > Menus. Now you’re going to add a custom link (which can be found by clicking on Custom Links on the left side of the page, below the Pages section). In the URL field, delete the http:// and replace it with #.
How to add a menu item in WordPress without linking to a page?
Step 1 – Log in to WordPress and go to Appearance -> Menus. Step 2 – Select the Custom Links section, add a Link Text (name of the menu item) and the # sign in the URL field. Step 3 – Press the Add to Menu button. Step 4 – Open the custom link that you added to the menu and remove the # sign.
How to link from a menu to a page section?
Sometimes you might want your WordPress navigation menu items to link directly to a page section that sits in the middle of a larger page, rather than simply to the top of the page. For example: instead of creating a nav menu link to a Contact page, how do I create a menu link to the Contact section of my homepage?
How to add a custom link in wp-admin?
This id attribute is the element’s anchor. In the Menu area in either wp-admin or the Customizer, create a new Custom Link to add to your navigation menu. Set the Custom Link to point to the page on which the content lives, plus the # character, plus the value of the element’s id attribute—for example, https://mysite.com/about-us#target-element.