I’d try to format my CSS rules accordingly. If you’re using body_class()
you can always target single-posttype
so as a quick example
.single-posttype .current-menu-item { display: none; }
Will hide the current menu item when you’re on a specific post type. If this makes sense hehe. Another way would be creating your own navigation menu Walker and running some additional checks inside.
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?
- Using nonce in menu item
- remove last separator?
- How show sub menu only using wp_nav_menu()
- WordPress built in breadcrumb trail 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
- 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
- Where do custom menus get constructed?
- How to remove div container in custom menu?
- Does loading of sub pages in menu cause load to the server?
- Get admin menu link
- 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
- How to have the Header show different content on different pages?
- 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
- 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
- Insert a div before the wp_nav_menu
- 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
- 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_bootstrap_navwalker Fatal Error
- 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
- Parent Page > Child Page Menu
- Opening Menu link in another tab
- Page header menu links change
- How are methods of class Walker_Nav_Menu invoked?
- Duplicate menu items when auto generating menu from product categories
- Using menus to link to sections on the home page
- Multisite: menus can’t be added in child sites
- How to get the Page Name of the current page?
- Swap out a page that is a parent to a many many pages
- How can I order these pages in this navigation bar on this old wordpress theme?
- Is it possible to remove the highlighted menu on Users and highlight a different menu?
- Adding widget to sidebar which contains current page’s submenu
- Modifying Woocommerce menu based on tags and categories
- How To add this tag before drop-down ul. in wordpress
- Unable to get Navigation Menu to display in the desired location
- WordPress theme editor not showing
- How to switch menu location in this header.php?
- Bootstrap navbar responsiveness on WordPress theme menu not working
- Why does WordPress convert absolute URLs to relative URLs for menu items?
- Extending Walker_Nav_Menu in wp_nav_menu List of Empty Items
- Creating custom vertical menu
- Enable identical menu on network sites
- No indication of menu
- Adding a menu item to the main menu
- wp_is_mobile() inside js
- Adding two same css class on menu item
- How to select single category in menu if post have two categories?
- menu is only pulling in one item
- Any reason why widgets/menus get emptied when I updated custom theme code?
- Add items to a menu
- 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 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
- 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
- Navigation menu, remove item from desktop
- Jquery dropdown menus working locally, but not in WordPress [duplicate]
- Wrapping my ‘s with
- One item on menu is not clickable when it should be
- Critical Error when editing menu
- I need to change the hyperlink attached to the logo on the mobile menu