-
My listing url is https://website.com/restaurant/name of restaurant but my breadcrumb is showing Home > Restaurant > State > City > Restaurant Category > Name of Restaurant.
How do I correct this?
-
Hello,
Thank you for contacting Rank Math.
These seems to be the categories assigned to the post. To remove this, please disable the option to show categories in Rank math > General Settings > Breadcrumbs
Looking forward to helping you. Thank you.
βββββββ
That is not the issue and enabling or disabling, the Category button does not affect what the breadcrumb shows.
I asked Geo Directory about it and they replied “RankMath breadcrumbs don’t respond to permalink settings on the details page on my test site either.”
Hello,
What did you want the breadcrumbs to look like?
If there is a way to do that with Rank Math, we will give the instructions.
Otherwise, you might need to use some other plugin or custom code for breadcrumbs if it is not possible with Rank Math.
Just like the url: https://lascrucesdirectory.com/restaurant/chalas-wood-fire-grill/
Hello,
The URL you shared is the URL you shared as affected URL. Do you have a mockup of the way you would wish your breadcrumbs to appear.
You can also use the following filter to edit how your breadcrumbs appear:
/** * Allow changing or removing the Breadcrumb items * * @param array $crumbs The crumbs array. * @param Breadcrumbs $this Current breadcrumb object. */ add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) { return $crumbs; }, 10, 2);
Looking forward to helping you.
Thanks, I am not sure exactly what to do with that code.
I would like the breadcrumbs to look like
You are here: Home > Restaurant > Chala’s Wood Fired Grill
so that would be Home > CPT > Business Title
currently it adds this for the busienss name : “Chalaβs Wood Fire Grill – New Mexican Cuisine – Las Cruces Directory” and I do NOT want the category and Website name in the breadcrumb.
please when you reply let me know where and how to add the code to my template. This is my current geodirectory-single.php template file.
<?php
/**
* The template for displaying all single posts.
*
* @package listimia
*/
global $gd_post;get_header();
$container = get_theme_mod( ‘listimia_container_type’ );?>
<div class=”details-page1 wrapper listing” id=”single-wrapper”><!– Call the listing hero section –>
<?php get_template_part( ‘global-templates/listing-hero’ ); ?>
<?php do_action( ‘listimia_single_bellow_header’ ); ?><div class=”<?php echo esc_attr( $container ); ?>” id=”content” tabindex=”-1″>
<div class=”row”>
<!– Content sidebar –>
<div class=”col-md-8 content-area order-last order-md-1″>
<main class=”site-main” id=”main”>
<?php if (function_exists(‘rank_math_the_breadcrumbs’)) rank_math_the_breadcrumbs(); ?><?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( ‘loop-templates/content’, ‘single_listing’ ); ?>
<?php listimia_post_nav(); ?>
<?php
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
<?php endwhile; // end of the loop. ?></main><!– #main –>
</div>
<!– Right sidebar –>
<div class=”col-md-4 widget-area order-first order-md-2″ id=”listing-right-sidebar” role=”complementary”>
<?php dynamic_sidebar( ‘listing-right-sidebar’ ); ?>
</div></div><!– .row –>
<div class=”row”>
<div class=”col-md-12″>
<?php if ( is_active_sidebar( ‘listing-details-bottom’ ) ) { dynamic_sidebar( ‘listing-details-bottom’ ); } ?>
</div>
</div>
</div><!– Container end –></div><!– Wrapper end –>
<?php get_footer(); ?>
Hello,
If that doesn’t work, we might need to take a closer look at the settings. Please include your WP logins in the designated Sensitive Data section.
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,
Can you please give us complete access to your site’s admin? With the access you’ve given, I couldn’t access the main Restaurants, Themes & Plugins page so I couldn’t run a conflict check.
Looking forward to helping you.
Pratik,
I gave you full admin access… and there are no restrictions that I am aware of. I just logged in with the same temporary login and can see everything. Restaurants are under the Restaurants tab in the wp-admin left side. But the template for this is the geodirectory-single.php
Hello,
I still couldn’t access all the pages on your site. Please check the screencast I added in the Sensitive Data Section.
Looking forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Thanks for sharing that. I am not sure why that is happening. See the new login in the sensitive data area.
Hello,
The access is still the same with limited access.
You can optionally share you won WP Access and install an activity monitoring plugin, such as WP ACTIVITY, to check changes .if any, made to your site.
Looking forward to helping you. 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 ‘Breadcrumb Issue’ is closed to new replies.