Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to remove certain breadcrumb separators


  • Majijiboo
    Participant

    @majid436

    Hello,

    I used CSS to remove certain parts of my breadcrumb and now need to remove certain separators (ex: “>”) between the words. Unfortunately all the separators have the same class, so is there a way to code bbpress so some separators are shown and others are not? Please see image below for example. Thanks.

    Link to image

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

  • Robin W
    Moderator

    @robin-w

    see

    Layout and functionality – Examples you can use

    From memory I think $args[‘sep’] = “>” would be what you are looking for

    so for instance

    function mycustom_breadcrumb_options() {
           $args['sep']    = '>>';
         
        return $args;
    }
     
    add_filter('bbp_before_get_breadcrumb_parse_args', 'mycustom_breadcrumb_options'
    

    would give a double chevron.

    If that doesn’t work, come back and I’ll look it up.


    Majijiboo
    Participant

    @majid436

    It works. Thank you.


    Robin W
    Moderator

    @robin-w

    You’re welcome

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