Tagged: breadcrumb
Let’s say I have a page with the title “Get to know Sampler Consulting!” but I want the name of that page in the breadcrumb to say something else. Is there a filter that I can use to override the title in the breadcrumb?
Thanks!
Hey Kevin,
Sorry for the late reply, at the moment there is no easy way to do this. Please try installing Yoast SEO plugin https://wordpress.org/plugins/wordpress-seo/
Best regards,
Vinay
In what way does Yoast SEO give the ability to override the breadcrumb content?
Hi,
Please add following code to Functions.php file of your child theme in Appearance > Editor
add_filter('avf_title_args', 'fix_single_post_title', 10, 2);
function fix_single_post_title($args,$id)
{
if (is_page(59))
{
$args['title'] = "Here is your custom title";
$args['link'] = get_permalink($id);
$args['heading'] = 'h1';
}
return $args;
}
And change page ID accordingly
Best regards,
Yigit