-
Hello,
IN this knowledge base there is a way to add breadcrumbs:
https://rankmath.com/kb/breadcrumbs/But i cant see this in my site ?
How can i activate this ?kind regards,
Patrick
-
Hello,
Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.
You can activate the breadcrumbs setting in Rank Math from Rank Math > General Settings > Breadcrumbs.
then add the Rank Math’s breadcrumbs code to your theme’s template files, and the breadcrumbs will appear on your website’s front-end accordingly.
/** * Use the following code in your theme template files to display breadcrumbs: */ <?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>Paste the above code directly into your theme’s
single.phporheader.phpwherever you prefer showing it.Hope that helps. Thank you and please don’t hesitate to contact us if you need further assistance.
Hello,
Adding to my colleague’s reply, it seems like you are using the Easy Mode of Rank Math. Some options like the Breadcrumbs are only available in the Advanced Mode. Please head over to WP Dashboard > Rank Math > Dashboard and switch to the Advanced Mode:
This should resolve the issue. Let us know if it doesn’t. We are here to assist.
ok yes! This works!
but i don’t want this to show up on the homepage.Hello,
Please replace the previous breadcrumbs code with this one:
<?php if (function_exists('rank_math_the_breadcrumbs') && !is_home() && !is_front_page()) rank_math_the_breadcrumbs(); ?>I hope this helps. Looking forward to helping you.
ok, thanks.
Lats question, is it possbile to change home into a fontawesome icon?At this time the code is not working URL in sensitive data
Hello,
We are sorry but adding an icon to Rank Math breadcrumbs is not yet supported.
You can use that outside the breadcrumbs shortcode or PHP code though.
I hope that helps.
Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.
please look at the URL
The code is not working ?Hello,
The breadcrumbs seem to be visible in the URL you have shared. If you cannot see it, please kindly clear your web browser cache or try in incognito mode.
See the screenshot for your reference:
https://i.rankmath.com/bq0enHLooking forward to helping you. Thank you.
Yes, it is vissible but this code is not working:
<?php if (function_exists('rank_math_the_breadcrumbs') && !is_home() && !is_front_page()) rank_math_the_breadcrumbs(); ?>The last URL should also be clickable
Hello,
Please add the below code to your
function.phpfileadd_filter( 'rank_math/frontend/breadcrumb/html', function( $html, $crumbs, $class ) { $html = str_replace('<span class="last">'.get_the_title().'</span>', '<a href="'.get_the_permalink().'">'.get_the_title().'</a>', $html); return $html; }, 10, 3);Hope that helps. Thank you and please don’t hesitate to contact us if you need further assistance.
yes, this works. Thanks!
Hello,
We are glad that this issue is already resolved.
If you don’t mind us asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.
You must be logged in to reply to this ticket.