- This topic has 5 replies, 2 voices, and was last updated 8 years, 6 months ago by Tom.
-
AuthorPosts
-
October 2, 2015 at 6:37 pm #141561Dallas
I am using GeneratePress with the GP-Premium add-on, BuddyPress and bbPress. Things are going along well, except when I select Forums. It goes to the Forum page, but the menu item Blog is highlighted instead of Forums. If I remove the Blog menu item, Forums still doesn’t highlight. Like I said, otherwise things are going well. Could someone take a look and let me know what I need to do to correct the problem? My web site is http://trilogusmediagroupco.ipage.com/edipros01/. Thanks in advance!
October 2, 2015 at 7:33 pm #141569DallasIt looks like I’m not the only one having this problem:
bbPress vs active menu item
https://generatepress.com/forums/topic/bbpress-vs-active-menu-item/
I tried the advice in this thread – but it is my primary menu that is having the issue, no secondary or side.
October 3, 2015 at 12:35 am #141607TomLead DeveloperLead DeveloperThis is an issue people keep on running into – in the near future I’ll be removing one of the classes that is causing this. It may cause some issues for a small percentage of people, but I think it will be better overall for everyone.
One solution is to set up your forums on a regular page using the forums shortcode. Then set up a 301 redirect from the forums URL to your new page where you added the shortcode.
That’s what I do on this site – it’s not ideal, but it should work until I make the change I mentioned above.
Let me know if you have any questions or concerns ๐
October 3, 2015 at 5:19 am #141654DallasI like the menu that comes with GeneratePress, but I was able to get around the issue by installing UberMenu. I think another menu plugin should work for just about anyone. I just happened to have UnberMenu already, and it no longer skips from the Forum to the Blog menu item. It’s still an issue for those using bbPress, but one I will do my best to get around. You did a great job with GeneratePress, and I hope you will continue to grow it. I am launching a professional association on it, and I know you will continue to make it a great option for WordPress users!
October 3, 2015 at 10:38 am #141715TomLead DeveloperLead DeveloperThanks for the update! Glad you found a solution ๐
October 3, 2015 at 11:35 am #141727TomLead DeveloperLead DeveloperJust looking into this.
Removing the styling for that class would make it so the Blog menu item was no longer highlighted when viewing a blog post in the blog.
Some might not mind, but I think some would. People generally like knowing they’re still in the blog.
I did some searching, and this is a known bbPress issue. The plugin (along with many other plugins using custom post types) adds the current_page_item class to the Blog menu item.
Here’s a topic on it on the bbPress website:
https://bbpress.org/forums/topic/viewing-forum-pages-makes-blog-menu-item-the-current_page_parent/And here’s the solution I wrote up: https://gist.github.com/generatepress/f5e4f6d1795cf6bb4c6a
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
-
AuthorPosts
- You must be logged in to reply to this topic.