Hello,
Thanks for contacting us and sorry for any inconvenience that might have been caused due to that.
You will have to use CSS to modify the look & layout of the breadcrumbs. You can use .rank-math-breadcrumb class to add styling to the breadcrumbs.
Hope this helps. Let us know if you need any other assistance.
Hi, Jaideep
Great thanks for your quick reply.
I did try the css, but I only know some basics. From my limited knowledge, the only way to match rankmath breadcrumb with our Porto theme is to place it into the container, therefore the breadcrumb can be fully responsive on different devices.
I have enabled breadcrumb which look really bad. Could you please access to my backoffice and give me some advice of it?
Best regards
Hi,
I have resolved it by modifying the core file of the template. It is ok for now.
One more question is that I use the following snippet to hide the breadcrumb on the homepage
<?php if(function_exists(‘rank_math_the_breadcrumbs’) && (!is_home()
&& !is_front_page())) rank_math_the_breadcrumbs(); ?>nk_math_the_breadcrumbs(); ?>
But this snippet hide the breadcrumb on the blog page as well. Can you please give me another rectified snippet about how to only hide the breadcrumb on the website homepage only?
Thanks for your help
Hello,
You can get in touch with a CSS developer and they would be able to style the breadcrumbs for you as per the requirement.
Regarding the breadcrumbs code, you do not need this nk_math_the_breadcrumbs();.
I logged into your website’s admin area and removed the !is_home() function from the breadcrumbs code and the issue is fixed. The breadcrumbs are shown on the blog page and not on the homepage. Here’s the final code:
<?php if(function_exists('rank_math_the_breadcrumbs') && (!is_front_page())) rank_math_the_breadcrumbs(); ?>
Hope that helps.
Thank you.
Hi, Prabhat
Thank you so much. I can see the breadcrumb on blog page now.
Can you help me with another issue I just found about the pagination number on the breadcrumb?
Occasionally, when I checked the pagination on the product listing pages, there is no pagination number on the breadcrumb. But after refreshing the page, the pagination number shows up and the number can not automatically change either.
For example:
1. Clicking on the page 2 on any product category, the pagination number will not show up on breadcrumb. (Like home >> category)
2. After refreshing page 2, the pagination number shows up on the breadcrumb. (Like home >> category >>page 2)
3. Then go ahead and click on the page 3, 4 5…., the pagination number on breadcrumb still shows page 2, but it should be page 3 actually.
Could you please go to my backoffice and take a look at it again?
Best regards
Michael
Hello,
Your theme is using AJAX to load the next page. We use the PHP function to add the breadcrumbs and as the page doesn’t refresh, the function to add breadcrumbs doesn’t run and that’s why you see the breadcrumbs of the previous page. You will have to reload the page to see the correct breadcrumbs.
Hope this clarifies your doubts. Please don’t hesitate to get in touch in case you need any other assistance.
Thanks.
Thanks for your explanation, Jaideep
Is there any method we can hide the pagination number totally on breadcrumb in any case, please?
Hello,
Please add the below filter to the website and see if you get the desired output:
add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) {
if(false !== is_paged()){
$crumb_lenth = count($crumbs);
unset($crumbs[$crumb_lenth - 1]);
}
return $crumbs;
}, 10, 2);
You can follow this guide to add the filter to the website:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Let us know how that goes.
Thank you.
Hi,Prabhat
Thank you so much. It works like a charm. Really appreciate your team’s efforts and patience. It proves that it is wise for me to choose Rankmath, although Porto does not support it.
This ticket is resolved.
Best regards
Hello,
We are super happy that we could address your concern. If you have any other questions in the future, know that we are here to help you.
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.