-
Hi,
I’m actually in this problem: i see the breadcrumbs above the header image of each page.
What i need is move them below the header image.
I’ve already contact my theme support but they can’t do nothing with it.
So i tried putting the string code “<?php if (function_exists(‘rank_math_the_breadcrumbs’)) rank_math_the_breadcrumbs(); ?>” in my single.php or header.php but nothing happened.Could you please help me?
Many thanks in advance
-
Hello,
Thank you for contacting Rank Math and I’m sorry for any inconvenience this issue may have caused you.
I see you’ve added the code in header.php above
tag, that’s why it’s showing at the very top. Also, I see you are using page builder (WP Bakery), you can use shortcode method as well. You can use the shortcode in the page builder:[rank_math_breadcrumb]You can go through this article to understand about it: https://rankmath.com/kb/breadcrumbs/#shortcode
The blog page didn’t load at my end to know if you’re using theme code or builder. If you’re using theme code, then search for single.php and add the code there. I can tell exact location where it should go only after going through the code. Having said that, it’s the theme support which can do quickly.
Hope this helps.
Thank you
Many thanks.
I’ve restored blog.
If you want i’ll send you the whole the single.php in my editor
Let me know.
Many thanks in advance
Hello,
I can quickly go through the website and let you know where it needs to be added.
Please do take a complete backup of your website before sharing the information with us.
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,
Please add the Rank Math code just above this line:
while ( have_posts() ) :So the code will look something like this:
if ($banner_enable) { $title = get_the_title(); require_once YUYU_T_PATH . '/template-parts/page-banner.php'; } if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); while ( have_posts() ) :Please do remember not to remove any other code, just add the Rank Math code. Also, delete from the header.php where you’ve added earlier.
Hope this helps.
Thank you
Ok i delete the string in the header.php and add your code in single.php
but i can’t see breadcrumbs in my pages
Could you please give an eye?
Hello,
We might need to take a closer look at the settings and codes. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.
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,
I have updated the code and it’s now showing below the banner : https://i.rankmath.com/i/jtXdMD
The code needs to go in:template-parts > blog > blog-single.php
I have added the code in the line 59.Please do make sure that you add this file to child theme as well because in future once you update the theme, the changes will vanish.
Hope this helps.
Thank you
Yes i’ve seen it and i thank to you.
But 2 one more things:1) Are you able to make breadcrumbs appear in all the pages and not only in blog articles?
2) The blog page is in 500 errorI’ve deleted before the rank math string in page.php.
What happened now?Thanks
Hello,
As far as pages are concerned, those are build using WP Bakery and only the WP Bakery sections are visible. Hence, you’ll have to add the Rank Math breadcrumb shortcode in the builder.
About blog, it has been like that for me since the 1st reply. Please contact hosting about the 500 error you’re receiving in the blog page.
Please do not hesitate to let us know if you need our assistance with anything else.
Thank you
Oh yes the shortcode.
I forgot that.
Many many thanks.
Have a good job
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.
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.
The ticket ‘Display breadcrumbs below header image’ is closed to new replies.