How do I edit bbPress breadcrumbs?
-
What I want to achieve:
I’ve installed bbPress as a plugin for WordPress. I want to make a few simple changes to the bbPress bread crumb function:
bbp_breadcrumb();
I need the bread crumb separator to be double right arrows rather than the default single arrow:
I want to replace > with ».
I also want to add “You are here:”
Why I need this:
I need to match the styling and position the Yoast Breadcrumbs. Yoast Breadcrumbs is installed as a plugin for WordPress. It breaks on bbPress pages.
What I’ve tried:
Using conditions and CSS, I disabled the Yoast bread crumbs on bbPress pages. I also disabled the default bbPress bread crumbs but called it just beneath my primary navigation. Effectively, I’ve “moved” the bbPress bread crumbs.
To change the bread crumb separator I’ve researched JavaScript and jQuery string replacements but I’ve been advised that this is “hacky”.
My question:
What’s the conventional way of changing the output of bbPress function?
I can provide additional JavaScript, PHP and CSS code if required.
Live demo:
These two live examples highlights the two types of bread crumbs:
Yoast bread crumbs: http://www.directsponsor.org/forums/
bbPress bread crumbs: http://www.directsponsor.org/news/
- You must be logged in to reply to this topic.