Matthew Simo (@mattsimo)

Forum Replies Created

Viewing 1 replies (of 1 total)
  • @mattsimo

    Member

    I made a filter that set’s the before, after, sep & root_text for the breadcrumbs. Take a look, writes over the ‘bbp_get_breadcrumb_pre’ filter found on line 1553 of bbp-includes/bbp-common-template.php

    // Change bbPress bread crumb separator.
    function filter_bbp_breadcrumb( $args ) {

    $my_args = array(
    'before' => "n<div class="subnav bbp-breadcrumb ">n <ul class="nav nav-pills ">n <li>",
    'after' => "</li>n </ul>n</div>nn",
    'sep' => is_rtl() ? __( "</li>n <li>", 'bbpress' ) : __( "</li>n <li>", 'bbpress' ),
    'root_text' => "Support"
    );

    $args = wp_parse_args( $my_args, $args );
    return $args;

    }
    add_filter('bbp_get_breadcrumb_pre', 'filter_bbp_breadcrumb' );

Viewing 1 replies (of 1 total)