Hello,
Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.
It could be that you haven’t selected your Primary taxonomy yet.
Please note that some options are only available when you enable the Advanced Mode in Rank Math. If it’s not showing, you must have chosen to use the Easy Mode. Please follow the steps in this link to switch to Advanced Mode:
https://rankmath.com/kb/advanced-mode/
After that head over to Rank Math > Titles & Meta > [Select your post type] and you should see the Primary Taxonomy option:
If the issue persists, please share the affected URL in the sensitive data section so we can take a deeper look at it.
We are looking forward to helping you.
Yes, I found that option after enabling advanced mode, So now after enabling it, how it will look in google search results?
Home > Category > Blog post title
Like this?
Hello,
Thanks for getting back.
Yes, if you have selected Categories as primary taxonomy then it will be displayed in the Google search results as you have mentioned.
Hope this helps. Let us know if you need any further assistance.
Thanks For Quick Response, I Actually expected that output, here I need some modifications, I need to enable Categories as primary taxonomy without affecting google search results.
Means,
I need breadcrumbs on my blog like this
Home > Category > Blog post title
And on search results like this
Home > Blog post title
How can I do that?
Hello,
Thank you for the update, and sorry for the delay.
You can use and modify this filter to remove items in your breadcrumbs snippet:
/**
* Allow changing Breadcrumb elements in BreadcrumbList snippet
*
* @param array $entity Breadcrumb entity
*/
add_filter( 'rank_math/snippet/breadcrumb', function( $entity ) {
return $entity;
});
These lines should go in your theme’s functions.php file.
I hope that helps. Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.
This code is not working. I have placed this code in function.php and selected Primary Taxonomy to None.
Its not Working
Hello,
Thanks for your reply.
Could you please confirm whether you’ve pasted the code provided by my colleague, as it is in your theme’s functions.php
file? If yes, then you need to modify the snippet first and then add it in the functions.php
file.
You may consult a developer regarding the modification of the code snippet.
However, do note that Google takes the Breadcrumbs structure from your website itself, so it is unlikely to get a different breadcrumbs structure on the SERPs.
Hope this helps.
Thanks.
Hi, I had modified the Breadcrumbs structure then pasted the code in functions.php. And I should consult a developer regarding this modification of the code snippet.
Thanks For Your Help
Hello,
Glad that helped.
Please feel free to reach out to us again in case you need any other assistance.
We are here to help.
Thank you.