Hello, we apologize for the inconvenience you are facing with the breadcrumbs on the product attribute page. To remove the “Product:” prefix from the breadcrumbs on the product attribute page, you can use a custom code snippet.
Here is the code snippet you can use to achieve this:
/**
* Filter to remove "Product:" from Rank Math Breadcrumbs on product attribute pages.
*/
add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) {
// Check if we are viewing product attribute pages
if ( is_tax( 'pa_attribute' ) ) {
$crumbs[1] = str_replace( 'Product: ', '', $crumbs[1] );
}
return $crumbs;
}, 10, 2 );
You can add this code snippet to your theme’s functions.php
file. This code will remove the “Product:” prefix from the breadcrumbs specifically on the product attribute pages.
If you need further assistance or have any questions, please feel free to reach out. Thank you for bringing this to our attention!
Sources:
Remove All Schema from Product Category Pages » Rank Math
How to Customize Breadcrumbs in Rank Math » Rank Math
How to Enable Breadcrumbs on Your Website With Rank Math SEO » Rank Math
How to Disable Custom Product Redirection in Rank Math » Rank Math
Remove All Schema from Product Category Pages » Rank Math
No, it doesn’t work obviously
Hello,
Apologies for the inconvenience.
We have tried the filter suggested above, and it is working fine.
Could you please share the affected URL so we can check as well? The breadcrumbs you are seeing could still be coming from WooCommerce.
To confirm that, you can follow the steps in this guide:
https://rankmath.com/kb/breadcrumbs/#woocommerce-breadcrumbs
Looking forward to helping 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.