Skip to:
Content
Pages
Categories
Search
Top
Bottom

abbrv page title in breadcrumbs


  • Jerry
    Participant

    @gerard749

    Hi,

    I created a Forum page using Method 1 and after saving the permalink I renamed the page. Is there a way an abbreviated version of the page title can appear in breadcrumbs.

    Thank you for your time

    Jerry

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

  • Robin W
    Moderator

    @robin-w

    Not sure if this is a forum related question or breadcrumbs from your wordpress theme?

    Can you show
    What the title is
    What the permalink is
    what the breadcrumb says currently
    what you would like it to say


    Jerry
    Participant

    @gerard749

    Hi,

    Thank you for responding. Sorry I couldn’t get back to you for so long.

    I don’t use breadcrumbs in my website. I use a custom menu with one of the menu items being the forum. The forum is navigated using bbpress breadcrumbs.

    The page title would be ‘No Labels Community Forum’ and in breadcrumbs it would be N L C F

    Thank you for your time

    Jerry


    Robkk
    Moderator

    @robkk

    you might be able to do this with css if the forum root has a certain class or id

    if it does use :before after the class/id and content:"N C L F" and then just style it to fit the rest of your breadcrumbs


    Robin W
    Moderator

    @robin-w

    This should do it

    add_filter( 'bbp_get_breadcrumb', 'change_breadcrumb_text' );
    
    Function change_breadcrumb_text ($trail) {
    $trail = str_replace ('No Labels Community Forum','N L C F',$trail) ;
    return $trail ;
    }

    Jerry
    Participant

    @gerard749

    Hi Robkk, Robin W,

    Thank you for responding.

    Hopefully by Tuesday I will be able to let you know how I made out.

    Thank you for your time.

    Jerry


    Jerry
    Participant

    @gerard749

    Hi,

    I used the function.php method first and it worked perfectly.

    Thank you for your help.

    Jerry


    Robin W
    Moderator

    @robin-w

    great – glad you’re fixed

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