Info
- 4 posts
- 2 voices
- Started 4 years ago by baptiste
- Latest reply from baptiste
- This topic is not resolved
Real Bread Crumb for BBPress
-
- Posted 4 years ago #
I put together some code to implement a real bread crumb trail for BBPress that should support any level of subforums. I'll open a ticket for the change too, but until it's in the trunk (hopefully), you can use it by doing the following.
In bb-includes/template-functions.php, just above the
// Forum Loop //line, add the following:(UGH - Why if I put code inside code tags is bbpress insisting on parsing it and tossing in backticks everywhere! To see the code, check this file: http://onthepitch.org/talk/bb-includes/template-functions.txt)
You'll have to update your template, mainly forum.php and topic.php. Look for the line like this"
<h3 class="bbcrumb"><a>"><?php bb_option('name'); ?></a> » <?php forum_name(); ?></h3>and replace it with something like this:
<h3 class="bbcrumb"><?php forum_bread_crumb(); ?></h3>And it should work for you.
-
- Posted 4 years ago #
Demo?
-
- Posted 4 years ago #
http://onthepitch.org/talk/forum/food-and-nutrition
Not in production yet - still ironing out various bits, adding stuff that's missing (oh how I miss AJAX posting), etc. But the breadcrumb stuff works for the forum and topic view.
-
- Posted 4 years ago #
Here's the ticket - hopefully the function or some form of it will get added. Possible improvement would be to limit the depth for forums with deep children
-
You must log in to post.