Archived topic
bbPress vs active menu item
8 replies · Started by Ladislav Blažek on June 23, 2014
Hi Tom,
I am trying to integrate bbPress to my website but when I am on topic or forums index page blog menu item (Novinky) is highlighted in the menu as active. I have static page for forum index using the same slug as it is configured for bbPress.
Examples:
* forums index - http://zapojit.cz/komunita/diskuze/
* topic - http://zapojit.cz/komunita/diskuze/tema/testovaci-tema/
It is OK on individual forum pages like http://zapojit.cz/komunita/diskuze/forum/speleopokec/
Any idea? Thanks.
Hmm I'll look into this - might have to include better bbpress support in the next version.
It does seem people have been having a similar issue: https://bbpress.trac.wordpress.org/ticket/2204
It shouldn't be making your blog link active though. Do you have a page created that has the bbpress shortcode on it?
If so, have you added that page to your menu in "Appearance > Menus"? If so, WordPress will highlight that page, and not the blog index.
Let me know,
Tom
I am implementing bbPress using method 1 - http://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/#method-1 - so I have empty static page with the same permalink as forum root. Not using custom menu, navigation is auto generated by WP - I was trying to create custom menu but without any difference.
Looks like others have had the same problem with bbPress: http://bbpress.org/forums/topic/navigation-problem-current_page_item-not-set-for-forums-in-navigation-tabs/
bbPress ignores the Forums tab, and highlights the blog tab for some reason.
I would (and do) use method 2.
I'll look into it to see if I can do anything to fix this within the theme, but WordPress.org is quite picky about code related to external plugins within their free themes.
Tom
Tested method 2, same issue. Something is adding css class "current_page_parent" to "Novinky" menu item (blog) when on topic page. Also sidebar layout is not respected - default setting is content (no sidebar) but forum is displayed with blog layout sidebar/content. With Twenty twelve theme class "current_page_parent" is not added to "Novinky".
Looks like they're working on fixing this: http://bbpress.org/forums/topic/bbpress-single-forum-menu-item/
As for the sidebar setting - this is a bug with the theme I'll get fixed right away.
Thanks,
Tom
Just took a look at this.
The sidebar issue was fixed in the latest version (1.0.8).
If you're updated and it's not working, go to Appearance > Customize and go to "Layout > Single Post Layout". Switch it to something else, then switch it back and save.
This should fix that issue.
Let me know,
Tom
Updated theme - sidebar issue solved. For menu item I used jquery workaround for now. Thanks a lot for you support and patience.
Happy I could help! Hopefully bbPress sorts out the menu item issue soon.
Tom
