Skip to:
Content
Pages
Categories
Search
Top
Bottom

breadcrumb style with css

  • @regnalf

    Participant

    I want to style the breadcrumbs because the forum page has a darker blue color. But the breadcrumbs have a very limited possibility to design them with CSS.

    Only the bbp-breadcrumb-root and bbp-breadcrumb-forum link is addressable with css, the current menu item is no link and has no css class to address at all. This would be only possible with the parrent container, but then you style the forum content also!

    It would already help if the breadcrumb would be in its own div container!

Viewing 3 replies - 1 through 3 (of 3 total)
  • @robin-w

    Moderator

    you can wrap the breadcrumb in a container – there is a filter

    'bbp_get_breadcrumb'
    
    return apply_filters( 'bbp_get_breadcrumb', $trail, $crumbs, $r, $args );

    @regnalf

    Participant

    Thanks Robin!

    And here for the record the full code i use:

    add_filter('bbp_get_breadcrumb', 'bbpress_filter_breadcrumbs', 10, 4);
    function bbpress_filter_breadcrumbs ($trail, $crumbs, $r, $args)
    {
       return '<div class="bbp-breadcrumbs">' . $trail . '</div>';
    }
    

    @robin-w

    Moderator

    great – glad to have helped !!

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