I have a few ideas:
- Set the custom link to
#
which won’t return anything - Add a custom class to the items and then use jQuery to remove the links.
- Use a PHP equivalent to the jQuery method
- Use the Disable Parent Menu Link plugin (or take it apart and write your own)
Related Posts:
- Error: Declaration of MyClass::start_lvl() should be compatible with that of Walker_Nav_Menu::start_lvl()
- Is there an easy way to replace a custom menu link with a page or post?
- Why do Custom Nav Menus generate so many classes on list items? Can I manage this somehow?
- Custom search filter causes menu and query_posts problems
- Using nonce in menu item
- remove last separator?
- How show sub menu only using wp_nav_menu()
- Custom Nav Walker menu – Display children count
- How to add menu to Dashboard that can be viewed by all users
- WordPress Export Import Site Navigation Menu
- List children of second level sub page
- Show top-level parent with submenu menu walker
- Add section to custom menu panel
- Custom menus created but does not show up in admin panel
- Replace menu tag with tag
- How to display custom post meta in the appearance->menus page
- wp_nav_menu custom walker – child items
- Adding menu items dynamically using wp_nav_menu_objects
- BuddyPress – How to add logout in nav menu
- Highlight the “Home” / “Blog” button while on main page
- Where do custom menus get constructed?
- How to remove div container in custom menu?
- how to add Custom menu item like User name in Header Menu only
- Get admin menu link
- Menus – Open items in new tab/window?
- How can I access the menu ID of an element in a WordPress Nav_Walker
- How to translate menu items?
- echo same menu items across multi-site platform
- Custom Menu url is Empty
- Menus don’t appear in admin area / WordPress Multisite
- WordPress menu not loading in the admin side appearence-> menu tab
- Programmatically add existing pages and subpages to Appearance Menu
- wp_nav_menu() doesn’t work
- Insert other menus as submenus of a main menu
- Appearance Menus Screen – menu item drop down menu not functioning
- Change the menu home link to something else
- Make a navigation menu in the same post [duplicate]
- wp_nav_menu $theme_location parameter ignored
- Count within foreach loop
- How to create a menu with pages and post categories?
- remove specific classes from menu items
- Highlight parent if item from submenu is active
- Why Isn’t My WP_Nav_Menu returning false?
- changing host.. data loss
- Theme Location empty
- How to buid wordpress menu with auto width sub-menu items in dropdown menu without any items sharing one line [closed]
- How to avoid a duplicate query from using wp_nav_menu?
- Wrapping menu’s top-level link and sub-menus in div
- how avoid the link of the current post in the menu in the sidebar?
- wp_nav_menu returns false even though a menu is assigned to it
- How to change the menu mark up with walker_nav_menu class?
- Menu on mobile version doesn’t collapse after choosing menu item [closed]
- How can I query all available public post types and taxonomies?
- If test for “has_nav_menu()” does not return echo when no menu exists
- If current menu item is child or parent with child?
- Is it possible to dynamically register menus?
- Dynamic menu wp_list_pages displaying only current branch including: current page, his siblings and its childs
- Parent Page > Child Page Menu
- Opening Menu link in another tab
- How to add class to anchor using wp_nav_menu
- Page header menu links change
- Is it possible to link to the same page from wordpress page menu?
- How do I add 3rd level of dropdowns to wp_nav_menu array?
- insert div into a menu item before the link and more
- How to remove empty menu space when creating admin page without menu title using add_submenu_page
- Trying to add Newline in Menu item
- How to unlock menu editing
- How to add a taxonomy type in Menus?
- WordPress + Bootstrap: Replace primary navigation menu on mobile?
- Multisite Setup – Menu Items To Reference Pages in Different Subdomains
- changin the url (permalink as it goes these days) on one specific menu layer
- Admin: WooCommerce Navigation Menus do not show empty categories search tab
- Using Anchor Link In Nav Menu
- WordPress database issues – menu not saving correctly, media thumbnails not showing
- How do I create a new directory to hold the assets for a new menu item?
- How to set active class to the menu of any page coming from a single.php template
- Parent link need to go first child submenu
- Sum root term’s entries count from child terms count
- Add newsletter signup element to navigation bar
- All custom links suddenly lack href attributes
- WordPress – Apperance > Menu
- How to stop showing menu in static home page
- How to get current menu item “CSS Classes” value?
- How to change page location in WordPress
- Use menu structure for permalinks
- Add tooltips with image in WordPress Menu?
- How to make a drop down menu with categories
- how to keep theme background image, menu or site header image while moving site in sub directory?
- Unable to edit Navigation bar
- Editor user only allow to post on certain categories
- Menu Underline shows without Hover after adding subitems
- Add class to current category menu item
- WordPress wp get nav menu items does not deliver external link
- How to create a custom WordPress navigation menu?
- Should I custom code drop down menus or use a wordpress plugin?
- How to load css file in my menu in wordpress
- Site pages show the page title under navigation bar
- Navigation menu, remove item from desktop
- Jquery dropdown menus working locally, but not in WordPress [duplicate]
- Wrapping my ‘s with