Hello,
Thank you for contacting Rank Math and bringing your concern to our attention.
You may try applying the following filter to your site to see if that works for you:
add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) {
if (is_product()) {
$crumbs[1][1] = 'https://domain.com/our-products'; // Replace with the correct URL
$crumbs[2][1] = 'https://domain.com/food'; // Replace with the correct URL
}
return $crumbs;
}, 10, 2);
Here’s how you can add filters/hooks to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Let us know how it goes. Looking forward to helping you.
Thank you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.