My home page has a different page title than ‘Home’, yet, on pages and posts, the Breadcrumb mentions ‘Home’. I would expect and like to see the page title in the breadcrumb.
I already managed to do this on all Woocommerce pages by the below code snippet.
`/**
* Rename “home” in breadcrumb
*/
add_filter( ‘woocommerce_breadcrumb_defaults’, ‘wcc_change_breadcrumb_home_text’ );
function wcc_change_breadcrumb_home_text( $defaults ) {
// Change the breadcrumb home text from ‘Home’ to ‘Here comes your title’
$defaults[‘home’] = ‘Here comes your title’;
return $defaults;
}
But this code doesn’t change it for pages and posts.
Please tell me how I can have the page title or have a breadcrumb other than ‘Home’.