Hello,
We apologize for the issue you are facing with the breadcrumbs on your website. To achieve your desired breadcrumb structure, you can customize the breadcrumbs settings in Rank Math. Here’s how you can do it:
-
Disable the Category Base: If you don’t want the category to appear in the breadcrumb, ensure that the category base is removed. You can do this by going to WordPress Dashboard → Rank Math SEO → Titles & Meta → Categories and enabling the option to remove the category base.
-
Change Breadcrumb Settings: You can customize the breadcrumb settings to change how they appear. To set the breadcrumb for the parent URL to link to your homepage instead of the category page, you can use the Breadcrumb Title feature.
- Go to the Rank Math Meta Box for your parent page (in this case,
domain.com/workout/
).
- Navigate to the Advanced Tab and set the Breadcrumb Title to "GF Workout Zone".
-
Set Homepage Link: If you want the breadcrumb to link to your homepage, you can enable the Show Homepage Link option in the breadcrumbs settings. This will allow you to set a custom link for your homepage.
-
Use Shortcode: If you are comfortable with coding, you can also use the shortcode [rank_math_breadcrumb]
in your theme files to manually place the breadcrumbs where you want them.
For more detailed instructions, you can refer to our guide on how to enable breadcrumbs.
If you still have questions or need further assistance, please reply to this ticket, and a human agent from our support team will be happy to help you further!
Sources:
How to Enable Breadcrumbs on Your Website With Rank Math SEO » Rank Math
What RankBot suggested does not exist.
“Disable the Category Base: If you don’t want the category to appear in the breadcrumb, ensure that the category base is removed. You can do this by going to WordPress Dashboard → Rank Math SEO → Titles & Meta → Categories and enabling the option to remove the category base.”
Hello,
Thank you for your query and we are so sorry about the trouble this must have caused.
Please head over to Rank Math → General Settings → Breadcrumbs and make sure the option
“Show Homepage Link” is enabled.
You can then, change the Homepage breadcrumbs label to “Homepage label”.
Then, just scroll below the settings page and you should see the option “Show Category(s)”. You can go ahead and disable that option.
Let us know how that goes.
It still does not work only on this URL:https://gfworkoutzone.com/workout/
It links to homepage in the first breadcrumb and this URL on the second: https://gfworkoutzone.com/category/workout/
Settings can be seen here: https://imgur.com/Kq7Gfxs
By the way website is password-protected as it undergoes development.
Hello,
You can use and customize this filter to remove the 2nd crumbs on /workout page:
add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) {
global $post;
if( $post->ID == 466) { //Change this to match the post ID of /workout page
unset ($crumbs[1]);
}
return $crumbs;
}, 10, 2);
If you’re not sure how to add this code, you can follow this guide:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Let us know how this goes.
This works perfectly! Thanks!
Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me 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 do 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.