To do this, go to the menu that you need a blank link set up on the WordPress dashboard under Appearance > Menu, and add the item as a “Custom Link” with only # as the URL. This makes it a deadlink that the user can’t click on, but it still allows you to add a sub-menu underneath it.
Replace the href attribute value with a #, also known as a hash symbol, to create a dead link.
At the top of the Menus screen, next to ‘Select a menu to edit’, choose the menu you want to add a custom link to from the drop-down list, then click ‘Select’. Click on the ‘Custom Links’ heading from the menu options which appear below. Type or paste the URL into the URL text field.
A hyperlink on a website that points to a Web page that has been deleted or moved. Also called an “orphan link,” it may also be a temporary condition if the Web server is down. … See 404 error and link rot.
Creating a Menu Item Without a Link
- In your admin dashboard, go to Appearance > Menus.
- Under Add menu items, click on Custom Links. …
- Click on it, look for the Custom Links, and check this box.
- Let’s go now to Custom Links. …
- You can now click on the menu item to open its options.
A hyperlink on a website that points to a Web page that has been deleted or moved. Also called an “orphan link,” it may also be a temporary condition if the Web server is down. Contrast with live link.
Pages – Adds a link to another page on your site. Posts – links directly to a blog post on your site. … Custom Links – Adds a custom URL linking to another site.
Creating a menu link to an external URL
- Click on ‘Structure’ in the admin toolbar.
- Click on the ‘Menus’ link.
- Click the ‘add link’ link for the menu you’d like to add a link to (main menu or footer menu).
- Enter the text for the link in the ‘Menu Link Title’ field.
What is a broken URL?
A broken link is quite simply a link on a web site that no longer works because the website is experiencing one or more of the following issues: The destination web page has been moved or no longer exists. An invalid URL has been entered for the link by the web page owner.
A broken or dead link is a link that you click but doesn’t work or doesn’t take you to the page you were meant to see. … When the link is broken, what you see instead is a 404 not found error page that tells you that the page you’re looking for is not available.
There’s only 3 steps:
- Go to your menu under Appearance > Menu.
- Go to the Custom Link option and add an option with the display title and something in the URL field (I usually add a # symbol) Remember you can’t add a menu item with no link in the URL to the menu in WordPress.
- Then, just delete the symbol in the URL field.
Defining a Menu
- Login to the WordPress Dashboard.
- From the ‘Appearance’ menu on the left-hand side of the Dashboard, select the ‘Menus’ option to bring up the Menu Editor.
- Select Create a new menu at the top of the page.
- Enter a name for your new menu in the Menu Name box.
- Click the Create Menu button.
Log into your WordPress admin panel and go to the menu Appearance-> Menus. Remove the parent menu item that you want to make non-clickable. In the “Custom Links” add an new external menu with the same name and put # into the URL field. Click “Add to Menu” and set the menu to your mages with level parent.