disabling breadcrumbs
-
Anyone know a simple way to disable the breadcrumbs? My theme has it’s own breadcrumb system that seems to work better than the bbpress one so I would like to stop the built in one from showing, perhaps by overriding the breadcrumb template file?
-
There is no ‘easy’ way to remove the breadcrumbs as they are included in a number of templates. You would need to go through each of the bbPress templates and remove the following:
<?php bbp_breadcrumb(); ?>
I had a feeling you would say that. I was hoping there was a way of overriding the function/ some include file somewhere. Oh well – thanks for clarifying
Not that I am aware of.
I built my own custom template and simply moved all the calls to the breadcrumbs to my own single file which I include in my theme. This means edit only one place and I am golden. Took a bit of work though.
I’m guessing if there is some way of overriding the breadcrumbs programmaticly that JJ will chime in someday, I simply don’t know.
There is. $1 to the person that looks for the function and finds out how.
easier than I imagined.
function bm_bbp_no_breadcrumb ($param) {
return true;
}
add_filter ('bbp_no_breadcrumb', 'bm_bbp_no_breadcrumb');How would you like to send me my dollar?
Now if only I could work out why this isn’t working properly – https://bbpress.org/forums/topic/remove-default-template-styles?
I like that smile )
@binarymoon – nicely done! PayPal okay?
I didn’t find any
bm_bbp_no_breadcrumb
in functions fileI created that function. You need to add it to your themes functions.php file
i do not think there is a way to remove the breadcrumbs
thanks binarymoon worked perfectly
Thanks, binarymoon! That is exactly what I needed.
I’ve removed all the breadcrumb calls in every template file but they still show up. I can’t use the filter because I have the call in header.php. Any idea why this isn’t working? For now I just solved it with CSS, but would like to know where the hook is.
#bbpress-forums .bbp-breadcrumb-home, # bbpress-forums .bbp-breadcrumb-root, # bbpress-forums .bbp-breadcrumb-separator, # bbpress-forums .bbp-breadcrumb-current { display: none; }
- This reply was modified 12 years ago by kristinachilds.
- This reply was modified 12 years ago by kristinachilds.
- This reply was modified 12 years ago by kristinachilds.
- This reply was modified 12 years ago by kristinachilds.
argh! the code posting on this forum is so jinky…
thanks a lot binarymoon!!!
When I add the function to functions.php I get a php error 🙁 Does it work with bbpress 2.2.2?
No, it works. My fault. I messed up with child functions
function bm_bbp_no_breadcrumb ($param) {
return true;
}
add_filter (‘bbp_no_breadcrumb’, ‘bm_bbp_no_breadcrumb’);
Could any tell me how do I need to use this code? Thank You!
@mdroca You should paste that code into your theme’s functions.php file. Here’s a guide on how to do that safely: http://wp-events-plugin.com/tutorials/how-to-safely-add-php-code-to-wordpress/
Also, for others wanting to hide bbPress breadcrumbs, this code is a bit more compact but does the same job:
add_filter('bbp_no_breadcrumb', function($arg) { return true; } );
Is it possible to substitute the forum root part of the breadcrumb with a url of my choice?
Cheers,
AntonyI’m about ready to pull my hair out! I’ve been trying everything I can think of and I can’t get rid of the breadcrumbs! I’m a coding novice at best…could I please ask someone to help walk me through this? I’d be super grateful…thanks!
ok
the answer is :
How to do it :
I would like to remove the breadcrumbs only on the forum root. Which file would that be ?
.forum-archive div.bbp-breadcrumb { display: none; }
- You must be logged in to reply to this topic.