You may already have discovered how to make a top-tier menu item unclickable in the Gutenberg Editor/WordPress, but I am placing this here for others to read.
- Use the menu block inserter to create a navigation block in your header. Add a top-tier menu item and choose a page in your list of pages. I created a page called Temp for this purpose.
- Create any sub-menus and assign appropriate pages by clicking on the drop-down list. If your particular page is not in the list, type the name into the field. If the page exists, Gutenberg will find it.
- Save this menu.
- Go back in, focus on the top-tier menu item, and click on the “Link” icon in the control menu.
- In the Link box, type in a #.
- Save.
- Leave the # in the link box. You cannot leave the box empty, unlike the Classic model.
- You’re done. The menu item is unclickable.
Related Posts:
- Adding an Arbitrary Link to the Admin Menu?
- How do I add nested categories to drop-down menu in twenty-eleven?
- How to add ul class on nav
- Show menu item description with line breaks
- Remove/Disable “Automatically add new top-level pages to this menu”
- Which settings/options are saved on a theme-basis and how does this affect theme-switching?
- WordPress Add javascript:void(0); to menu link item?
- Does WordPress create mobile menus automatically?
- Programmatically create and place a nav menu in a theme location?
- Create search form in menu as in Twenty Fourteen theme
- Why is my menu not ordered properly?
- My menu bar dissapeared with autooptimize [closed]
- Cant add menu items with my theme
- How to override the theme home page?
- How to remove menu installed in wp-admin by a theme? [closed]
- Change submenu markup
- Change hyphen/dash for vertical line in menu [closed]
- How should I build a custom menu walker for this setup?
- How to re-arrange the MENU of “Allure Real Estate Theme for Placester” wordpress theme?
- How to override menu markup?
- Want to add different text after each menu item
- Automatically Display Sub Menu
- Menu separator appearing on next line
- Full screen nav menu block with avada theme
- How to hide the menu item created by the theme in WordPress admin panel?
- Creating custom menu with custom themes
- Removing Submenu from Menu
- Efficient wp mobile menu
- How to show submenu of any page in main menu
- adding pages in underscores.me theme
- Structuring Nav Menu and Background Custom page (Help)
- How to work with a custom theme that someone else created before me? (details below)
- Does the Default theme of WordPress like 2016, 2017 and 2019 uses Walker_Nav_Menu Class
- WordPress Menu Navigation links not working
- Menu doesn’t open on mobile
- WordPress theme editor not showing
- Making my main menu a hamburger menu on all platforms
- menu change after theme change
- menu mobile show up even i in desktop mode in Newspaper Theme
- All custom links suddenly lack href attributes
- Hide menu theme location for certain capabilities?
- Making wordpress menu horizontal [closed]
- Add a Submenu from Another Submenu in a Custom Theme
- wp_nav_menu in 3.7 add name class nav navbar-nav
- how to keep theme background image, menu or site header image while moving site in sub directory?
- Make title bar collapse when scrolling
- How to add or remove borders in navigation menu?
- Customizing Responsive Themes Menu [closed]
- Some informations about the use of statics pages in WordPress
- How can I added the post’s Categories to the site’s top menu (like a page)?
- The menu jumps a few pixels after the website loads
- Unregister Nav Menu from Child-Theme
- Keeping parent menu items active in child pages
- Way to bulk delete menu items in new 3.x Appearance > Menus system?
- Pass a parameter to a menu walker
- Customize the menu by adding items
- wp_nav_menu log in/out link?
- How to insert custom code into wp_nav_menu structure?
- How to make theme elements customizable in wordpress?
- getting parent page id when using custom menu.
- Change name & menu_name for Profile in the default menu, w/o altering core files?
- wp-menu ‘automatically add custom taxonomy terms’ like it does for pages? [closed]
- SlickNav – Google Lighthouse Accessibility issue for collapsed menu button
- current-menu-item class in CSS
- Put class on instead li
- Tiles as a navigation
- Default menu editor with automatic page list
- Can I have custom post types in “Add menu items” on in the Admin > Appearance > Menu
- Adding a unique ID to each sub-menu
- How to get a multidimensional array of my menu?
- How to get the name of the homepage’s menu?
- How to add search to menu?
- How to get submenu of admin menu?
- wp_nav_menu without menu or theme_location specified
- navigation among single posts
- What is the $menu parameter used of in wp_nav_menu()?
- Editing the nav menu?
- Keep source page URL parameters on custom link menu item
- I’m trying to remove a duplicate menu, which only appears on the homepage?
- Embedding an external webpage within a page? Is it possible, is it a good idea?
- How to remove empty line space in navigation menu?
- Is it possible to get_the_post_thumbnail (Featured Image) inside a sprintf function?
- Assign a different menu depending on custom taxonomy
- WP pages content is missing in frontend
- Dashicons not showed for admin menu
- How to select particular menu position in wordpress?
- Menus not visible in Appearance after being registered
- Error: Declaration of MyClass::start_lvl() should be compatible with that of Walker_Nav_Menu::start_lvl()
- Cannot add home page url to menu with #
- Two theme locations for two menus, but only one is showing up
- Having an issue with wp_nav_menu displaying custom navigation
- Add dynamic content block to nav section generated by custom walker
- Customizing label/title output of admin nav_menu selecter
- Extend Individual Menu on Page Function to individual Submenue on Page Function?
- How can I modify wp_nav_menu with walker?
- menu items outside of blog
- How to insert date in topNav
- Change sub-menu css class
- How to add an tag when a menu item is a dropdown(or has a sub-menu) [duplicate]
- How to display a submenu as a popup when clicking a button?