Quantcast
Channel: bbPress.org » All Posts
Viewing all articles
Browse latest Browse all 3666

Reply To: how does bbpress.org keep highlighting the current page?

$
0
0

For the topics archive showing all topics, you can use the shortcode [bbp-topic-index] on a normal WordPress page.

“All replies” is slightly different. You could use the Recent Replies widget (http://codex.bbpress.org/widgets/) if you had a page with a widget for the content but if you wanted a proper archive page, I think you’d have to make a new template for it. I think it’s one of those things that if enough people ask for it, it might get prioritised for future versions but that’s just a guess. If you are comfortable making page templates, I can post how I did a “latest posts” page (posts = new topics + replies).

I’m not sure what part of the menu you mean, I’m sorry. Do you mean how “support” (with a link to /forums) is highlighted above even when you’re on a topic page? They use a custom nav file:

https://meta.trac.wordpress.org/browser/sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/header-nav.php

If I were trying to replicate that, I would use jQuery to add the current-menu-item class to the top forums list item – not that it’s is the right way to do it, it would just be the easiest for me to do and to maintain. You’d need to add it to a javascript file in your template or make one and then include it. If you’re interested, I can post that code – you will need to add a custom class to your forums menu item too.

Sorry, I know that wasn’t too terribly helpful!


Viewing all articles
Browse latest Browse all 3666

Trending Articles