Hello,
Thank you for contacting Rank Math.
You can add the breadcrumbs PHP code below the header in content-single.php file:

This will add the breadcrumbs below the title on your post/pages.
Hope this helps.
Thank you.
If I update the template, then I have to add the part to it again.
If yes, is there any other permanent method to achieve this?
Hello,
Please try adding the following PHP snippet in order to display breadcrumbs in Generatepress.
add_action( 'generate_after_header', function() {
if ( function_exists('rank_math_the_breadcrumbs') ) {
rank_math_the_breadcrumbs( '<div class="grid-container grid-parent"><p id="breadcrumbs">','</p></div>' );
}
} );
Here’s a guide on how you can add the PHP Snippets to your WordPress site:
https://docs.generatepress.com/article/adding-php/
Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.
Thank you.
My question was:
If I update the template, I must add the part to it again.
If yes, is there any other permanent method to achieve this?
Is there any permanent solution to this because, everytime if there’s an update I have to put this code back in the template
Hello,
I suggest you make use of the child theme so when you update the theme, your custom code will not be removed as mentioned in the guide my colleague presented.
Hope that helps. 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.