Hello,
Thanks for contacting us!
Rank Math doesn’t provide that feature by default but you can achieve it using custom code and filters. Please check and modify the below code then add it in the end of your themes function.php file to add the Blog page in your breadcrumbs:
/**
* Allow changing or removing the Breadcrumb items
*
* @param array $crumbs The crumbs array.
* @param Breadcrumbs $this Current breadcrumb object.
*/
add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) {
if(is_singular('post')||is_category()){
array_splice( $crumbs, 1, 0, array(array(
"Blog",
"https://yourwebsite.com/blog/",
"hide_in_schema" => false
)) );
}
return $crumbs;
}, 10, 2);
Please let us know how that goes.
Thanks!
Hi Prabhat,
The code perfectly worked. Hope we have this as a default function in the future update.
Thanks!
Mayumi
Hello,
We are glad that we could address your issue.
We will be including many amazing features to Breadcrumbs in the coming updates. For more details, you can keep an eye on our changelog: https://rankmath.com/changelog/
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.