Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
It is currently possible to modify the breadcrumb HTML and $crumbs by using the following filters:
/**
* Filter to change breadcrumb html.
*
* @param html $html Breadcrumb html.
* @param array $crumbs Breadcrumb items
* @param class $class Breadcrumb class
* @return html $html.
*/
add_filter( 'rank_math/frontend/breadcrumb/html', function( $html, $crumbs, $class ) {
// theme_breadcrumb_function();
return $html;
}, 10, 3);
//Remove breadcrumb items
/**
* 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 ) {
return $crumbs;
}, 10, 2);
Looking forward to helping you. Thank you.
I dont understand how to use it. So is it possible to add a extra tag in the breadcrumb e.g. a page in front of an category)?
Hi Ralf,
Thanks for the follow up.
Yes it should be possible to add the page in front of the category. I can recommend that you reach out to a freelancer so that they can help to customize the arguments for this filter.
I hope this info helps. 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.