Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Havlik

    (@mtekk)

    You can use the bcn_breadcrumb_title filter to change what Breadcrumb NavXT uses for a page/post. If you don’t want to write code to do this, there are plugins that provide GUI elements for allow you to use a title in the breadcrumb trail that is different than the post/page title.

    Thread Starter Melissa McDermott

    (@wildlotusmedia)

    Sorry for the late response. Thank you. I see the below function to change the homepage. How could I modify this to use a specific page ID instead?

    add_filter(‘bcn_breadcrumb_title’, ‘my_breadcrumb_title_swapper’, 3, 10);
    function my_breadcrumb_title_swapper($title, $type, $id)
    {
    if(in_array(‘home’, $type))
    {
    $title = __(‘Home’);
    }
    return $title;
    }

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

The topic ‘Custom Page Title’ is closed to new replies.