Hello,
Thank you for contacting Rank Math support, and we apologize for the inconvenience caused to you.
Could you please let us know the theme you are using?
It would be great if you can share with us how exactly you wish to format your ‘Breadcrumbs.’
You can check these filters in the ‘Breadcrumbs’ section. I hope if it could be of any help:
https://rankmath.com/kb/filters-hooks-api-developer/#Breadcrumbs
We hope that helps. Please let us know if you need help with anything else.
Thanks
Hello,
I use oceanwp theme.
I pasted code in functions.php:
/**
* Filter to change breadcrumb settings.
*
* @param array $settings Breadcrumb Settings.
* @return array $setting.
*/
add_filter( ‘rank_math/frontend/breadcrumb/settings’, function( $settings ) {
$settings = array(
‘home’ => true,
‘separator’ => ”,
‘remove_title’ => ”,
‘hide_tax_name’ => ”,
‘show_ancestors’ => ”,
);
return $settings;
});
And I don’t know where I can paste the code:
<?php if (function_exists(‘rank_math_the_breadcrumbs’)) rank_math_the_breadcrumbs(); ?>
Which file please ? 🙂
Hello,
Please try adding the breadcrumbs PHP code at the bottom of your theme’s header.php file.
<?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>
This should make the breadcrumbs appear on all your pages, below the site header.
When you add the PHP code to page.php file, you need to use the [rank_math_breadcrumb] on the pages to display the breadcrumbs.
If it still does not work, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
Thank you for keeping in touch with us.
I tried accessing your theme editor to modify the code but it seems broken and I can’t edit it well as there are visual bugs.
Can you please share your FTP login instead?
We are looking forward to helping you with this one.
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.