• Skip to primary navigation
  • Skip to main content
OsomCode

OsomCode

Awesome code tutorials for WordPress and Genesis

  • Subscribe
  • My account
    • Edit profile
    • Favorites
    • Update credit card
  • Login

Remove the first item from bbPress breadcrumbs

Learn in this tutorial how to hide the first breadcrumb element in bbPress using a code snippet.

bbPress is one of the most popular WordPress plugins for creating a forum on a website. It’s not the most “flashy” but it has a robust code and that’s why I’ve used it several times to implement it in my clients’ projects.

In a forum it is very practical to have breadcrumbs so that the users know where they are at all times.

In this sense bbPress fulfills this function well, but one of the things I always do is to remove the first element of the breadcrumbs, as it can even be misleading.

Breadcrumbs by default in bbPress.
bbPress breadcrumbs without the first element.

If you also think it’s better to remove this element, read on.

Snippet to remove the first element from bbPress breadcrumbs

Add this code at the end of the file style.css:

To see this and another 847 code snippets of this website, login or subscribe here.

With this simple change you avoid displaying the first breadcrumb element, which is almost always the home page of the website.

Conclusions

Now you know how to remove the root element of the bbPress breadcrumbs with a simple snippet.

Any questions? I read you in the comments.

And if you want to give me any suggestion for future tutorials, leave it in the contact form. Advantages of being a subscriber. 😉

bbPress CSS Menu

To leave read and make questions about this code, you can login or register.

  • About OsomCode
  • FAQ
  • Contact

Legal Notice · Privacy Policy · Cookie Policy · Terms and conditions
Copyright © 2023

Lost your password?