Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to change the text of link 'Home' in bbPress forum breadcrumb?


  • Aahan Krish
    Participant

    @aahan

    I just installed bbPress 2.0.2 forum plugin for WordPress, and would like to change the text of link Home to iGeek (or anything else, for that matter).

    So the breadcrumb Home › Forums becomes iGeek › Forums (or something like that). How do I do that?

Viewing 1 replies (of 1 total)

  • Aahan Krish
    Participant

    @aahan

    In case it helps, I have identified the code that determines the text. It’s in wp-contentpluginsbbpressbbp-includesbbp-common-template.php but it needs to be modified by adding a function in functions.php, and I don’t know how to do that.

    Anyway, this is the code:

    /** Home Text ********************************************************/

    // No custom home text
    if ( empty( $args['home_text'] ) ) {

    // Set home text to page title
    if ( $front_id = get_option( 'page_on_front' ) ) {
    $pre_front_text = get_the_title( $front_id );

    // Default to 'Home'
    } else {
    $pre_front_text = __( 'Home', 'bbpress' );
    }
    }

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.