You should be able to use a body class to style your menu item :
.single-project .menu-item-45 a
In “Appearance > Menu”, you could also add custom CSS classes to menu items. You could give your Portfolio menu item a class of “portfolio” and do this :
.single-project .menu .portfolio a
I do this mainly because I don’t like .menu-item-[number], it’s more readable with a plain text name, but the first solution should work anyway.
Related Posts:
- Placing a Custom Post Type Menu Above the Posts Menu Using menu_position?
- Adding a menu item for a Custom Post Archive
- Adding an Archive of Posts to the Navigation Menu in WordPress 3.0
- Adding custom post type archives to a WordPress menu
- How to add custom post type archive page links to nav menu?
- Creating “static” taxonomies to choose from, inside custom post type?
- Query menu_order custom post types
- How to add meta box to backend menu page
- Custom Post Type Menus
- How can I get my Custom Post Types to appear in nav-menus.php ‘Menu’?
- Highlighting current item of custom post types’ sub pages, listed by wp_list_pages
- Extend walker class with custom post types [closed]
- Hide custom post type from nav menu manager
- automatically placing custom post types singles into submenu of main nav menu
- How to Programically add to the new WordPress menus
- Menu with Automatic Pages Included from Custom Post Type
- Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
- Editor access to menu: custom post type missing
- Custom Post Type .current-menu-item not applying on Custom Post Type Archive Page
- Highlight parent menu item when child post
- wordpress custom post type remove duplicate menu item
- Adding Custom Taxonomy Archive Link to Nav Menu Shows Up As (Invalid)
- Menu highlight custom post type archive
- adding .current* tags to custom post types and taxonomies
- How to get custom post type menu_name?
- How do I create an archive page for standard posts?
- ‘Pages’ widget alternative for custom post types?
- wp_nav_menu() mark current item ancestor of custom post type
- current-menu-item class for custom post type parent
- Menu Multiple Taxonomies
- how to get post slug from url in wordpress
- Fake mark a menu item as current_page_item/active in WordPress
- Add/Remove current_page_parent class
- Should I use custom menu, C.P.T. or theme options, or something else for this?
- Update menu when saving settings
- custom post type not showing in menu
- Correct classes for WordPress menu items
- Custom Taxonomy Navigation, with current menu items for children?
- Customize the Dashboard Menu Editor
- Display posts from Custom Post Type in category page on front-end
- Use menus with anchors
- Custom Post Type Nav to Subpage
- Custom Post Types don’t highlight in menu nav
- Querying both pages and posts
- Second Set of Eyes: One custom taxonomy shows in Appearance > Menus, one does not
- page menu entry for custom post type
- Use custom walker to add taxonomy terms to main nav menu
- Single custom post type’s menu ancestor/parent is Posts archive page
- menu link to custom post_type?
- Custom Post Types in the WordPress Navigation Menu
- Custom Post Type & Custom Menu Walker to append custom class for active post types
- Ordering Submenu Pages in WP 3.1
- Including link to custom post type in ‘wp_list_pages’ function
- How can i automatically add CPT single pages as sub menu items
- How can I use archive-{post_type}.php theme template?
- Custom Post Type Link added to menu won’t show in frontend
- How To Display A List Of CPT Posts In A Meta Box On Menus Page?
- Get custom post type categories to show up in menus
- How can I create an automatic drop down menu with my tags?
- show current item in custom menu, when inside a custom post type
- WordPress menu with custom taxonomy
- Prevent custom post type from showing up in custom menus
- Custom Post Type – Portfolio no longer works
- How to programmatically add elements in a custom menu
- Custom Posttype and menu classes
- Custom post type posts wont show in wp_nav_menu()
- Placing Admin Post Metaboxes in Tabs
- Menu for taxonomies and posts belongs to taxonomy
- How can I put content before my custom post type default pages?
- How we can create menu from Appearance > Menu and use as a add-submenu-page for admin menu?
- build child and anchestor three from post parent
- wordpress get menu id by custom post_type?
- cpt not display inside nav menu
- How to create a Child & Siblings menu for a custom post type?
- Custom post type category link + add to menu
- Navigation not working for custom post type pages
- wp_nav_menu doesn’t seem to work on custom post type pages
- Custom nav menu current item custom link problem
- Use the page picker from wordpress menu creation page
- Custom Post Type parent slug as menu item
- current_menu_parent for custom post type and custom url
- Calling the first & last post by category in custom post type
- add current-menu-item to multiple custom post types
- List all posts from custom post type by taxonomy
- how to override menu widget?
- Custom Taxonomy Showing in WP Menu
- Plugins for putting Custom Post Types into the Menu
- CPT Archive with parent page
- Setting a Master Menu on a Custom Post Type
- Show posts of parent in edit.php
- current_page_item and custom post type?
- and custom post_types to custom menu
- Menu that shows months and filters posts to show only posts from that month and shows posts as sub items
- How to make a single Menu Item call another Mega Menu for Custom Post Types and Custom Taxonomies?
- Highlight specific menu item when custom post is page
- sidebar hierarchical menu category & custom post type
- Navigation won’t update to show full path to single post
- Menu Structure and URL structure, with Pages and Post-Type-Posts
- How to build help pages similar to WordPress Developer Resources
- Trying to add CPT to menu automatically