Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change Breadcrumb text or remove breadcrumb


  • andersvinther2
    Member

    @andersvinther2

    Hello,

    Where does the bbPress breadcrumb get the text bits from?

    The first part on my site looks like the title of my home page, and it is rather long!

    Any way of changing the text without changing the home page?
    Or removing the first part of the breadcrumb?
    Or removing the breadcrumb all together?

    Thanks!

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

  • andersvinther2
    Member

    @andersvinther2

    Bump 🙂


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Drop something like this in a plugin or your theme’s functions.php.

    function your_filter_thing( $args = array() ) {
        $args['home_text'] = 'Home';
        $args['root_text'] = 'Forums';
    
        return $args;
    }
    add_filter( 'bbp_after_get_breadcrumb_parse_args', 'your_filter_thing' );
    

    andersvinther2
    Member

    @andersvinther2

    Wow – super!!!

    Thank you very much…


    ffadler
    Participant

    @ffadler

    Specialty question, piggybacked onto this topic. 🙂 Mr. Jacoby’s answer got me thinking.

    Is there a special function that I can use that will redirect the link associated with

    $args['root_text'] = 'Forums';
    

    to another location on my site. Preferable an existing WordPress page. Comes back to the link of that breadcrumb goes to an archive page. I would rather it go to an index…or a WP page which is acting as an index. Thanks.


    Anointed
    Participant

    @anointed

    bumping: good question!

    Also: while on the subject of filters, is there a filter to remove the topic title from the breadcrumb trail?

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