Skip to:
Content
Pages
Categories
Search
Top
Bottom

Breadcrumb trail shows page title rather than site title

  • The breadcrumb trail at the top of our forums look like this:

    About us › Forums › Privat: Our association

    “About us” being the title of the page set as our start page in WordPress. Shouldn’t this be the website title instead? How can we change it?

Viewing 4 replies - 1 through 4 (of 4 total)

  • John James Jacoby
    Keymaster

    @johnjamesjacoby

    This is by design, since that’s the title of that page.

    I don’t follow – didn’t I leave that page when I clicked “Forum” in the menu and went to mydomain.com/forum/ ?

    Hey Jobjorn,

    I’m still pretty green with bbPress but I think you could make a plugin to modify that base page title. I think the function you may want is this..

    function bbp_get_forum_archive_title( $title = '' ) {
    global $bbp;

    // If no title was passed
    if ( empty( $title ) ) {

    // Set root text to page title
    if ( $page = bbp_get_page_by_path( $bbp->root_slug ) ) {
    $title = get_the_title( $page->ID );

    // Default to forum post type name label
    } else {
    $fto = get_post_type_object( bbp_get_forum_post_type() );
    $title = $fto->labels->name;
    }
    }

    return apply_filters( 'bbp_get_forum_archive_title', $title );
    }

    It’s located in the bbp-forum-template.php


    David Decker
    Participant

    @daveshine

    I’ve released a small bbPress Plugin called “String Swap” where you can easily change a few breadcrumb parameters as well as some other strings for the frontend. — bbPress 2.1.2+ required!

    You can check it out here:

    https://wordpress.org/extend/plugins/bbpress-string-swap/

    After installing/activating, look on the bbPress Settings page where there is a new section then 🙂

    Hope this helps some users 🙂
    -Dave.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar