Hello,
Thank you for contacting Rank Math today.
That entirely depends on your preference if you’re going to display the breadcrumb everywhere then you would need to place the code under the particular template, e.g. header.php
or you can opt using the shortcode [rank_math_breadcrumb]
Some themes offer complete support of Rank Math breadcrumbs, for instance, Astra theme.
If you use this theme, you don’t need to place the code manually. You would only need to select the breadcrumb source and position.
Please see the screenshot below:
To avoid being overwritten, you will need to use a child theme and apply the breadcrumb code in the template file.
<?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>
You can refer to this article from WordPress codex on how to create a child theme:
https://developer.wordpress.org/themes/advanced-topics/child-themes/
By doing this, your files won’t be overwritten unless you updated them manually.
If the above instruction didn’t work. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section. So we can help you implement it on your site.
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. Thank you.