Opened 13 years ago
Closed 13 years ago
#3621 closed defect (bug) (fixed)
current-menu-item class not being applied on nav menu state
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 1.6 | Priority: | normal |
Severity: | minor | Version: | 1.5 |
Component: | Core | Keywords: | |
Cc: |
Description
I have set up a wordpress page 'Discussions' for my site wide forums, which surprisingly doesn't create a menu item automatically, so I've reverted to a custom menu. Now that I have added the 'Discussions' page to my custom menu it works fine expect the 'current-menu-item' class is not added to the tag and therefore does not take on the selected item CSS.
Im testing all of this on my dev environment (BP1.5, bb2.0, WP3.21 with bpdefault theme).
Change History (5)
Note: See
TracTickets for help on using
tickets.
I think this appears to occur for any BP component mapped to a custom page, when used with custom nav menus. We might consider setting $wp_query->is_singular=true in bp_core_load_template() -- it seems to correct the issue but I'm not sure why we don't need to do this for our "default" pages (e.g. "groups", "members" and the other defaults we create).