Hello,
Thanks for contacting us. Sorry for the delay and any inconvenience that might have been caused due to that.
The links are working fine in breadcrumbs on your site. I checked a few other pages and it seems fine. The link for the last crumb isn’t added as that’s the page you are currently on and in the case of the page that you have shared, the Product Category doesn’t have a page and that’s why there is no link being added for this.
However, you can use this filter to add the link manually to the crumbs: https://rankmath.com/kb/filters-hooks-api-developer/#change-remove-breadcrumb-items
Hope this helps. Let us know if you need any further assistance.
Hi thanks for the response.
Yes when on a portfolio item page the links work such as this page:
https://baxalldev.adamsnewmedia.co.uk/portfolio/tonbridge-school-barton-science-centre/
There you can see home > portfolio > education all of which are active links.
But when on a portfolio category page then the breadcrumb links are not active, see here on this category page: https://baxalldev.adamsnewmedia.co.uk/portfolio-category/educational/
Also why has it changed from “home > portfolio > education” format to “Home » Portfolio Categories » Educational” where “Portfolio Categories” is not active like “Portfolio” is?
Hope you can help!
Hello,
Thanks for getting back. Sorry for the delay and any inconvenience that might have been caused due to that.
why has it changed from “home > portfolio > education” format to “Home » Portfolio Categories » Educational” where “Portfolio Categories” is not active like “Portfolio” is?
It depends on how your theme is generating these categories. I can check that the portfolio page doesn’t have an option to lead you to the categories like education, so that’s not going to be added by default.
And since the Portfolio Categories doesn’t lead anywhere, it doesn’t have a link assigned to it in the breadcrumbs.
You can use the filter I have provided in the previous reply to edit the breadcrumbs and set them the way you want.
Hope this clarifies your doubts. Let us know if you need any further assistance.
HI, I added a rank-math.php file and inserted this code:
/**
* 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);
How do I now customise the breadcrumb so it shows:
home >> Portfolio >> Category >> Sub-Category
Thanks!
Hello,
Sorry for the unexpected delay and any inconvenience that might have been caused due to that.
If you want to display the subcategory in the breadcrumbs then you can simply set the subcategory as the primary category of the post. After setting it as the primary category, the subcategory will be displayed in the breadcrumbs. Here is an article on how to set a primary category: https://rankmath.com/kb/how-to-choose-a-primary-category/
Hope this helps. Let us know if you need any further assistance.
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.