Breadcrumbs not showing

#675873
  • Hello, thanks. I enabled breadcrumbs through Rankmath but they are not showing on my site, . I also added the code it suggested to my functions.php but that also didn’t work. How can I get them showing?

Viewing 15 replies - 1 through 15 (of 21 total)
  • Hello, we’re sorry to hear that you’re experiencing issues with the breadcrumbs not showing on your site. We understand how important it is to have this feature working properly.

    To troubleshoot this issue, we recommend checking the following:

    1. Theme Compatibility: Ensure that your theme supports Rank Math’s breadcrumbs feature. If your theme doesn’t natively support Rank Math’s breadcrumbs, you may need to add the code snippet to your theme’s template files manually.

    2. Code Location: Make sure that you’ve added the code snippet in the correct location within your theme’s files. Depending on your theme, the location where you should add the breadcrumbs function may vary. In most themes, it would be either the single.php file or the header.php file.

    3. Child Theme: If you’re adding the code directly to your theme’s files, we highly recommend using a child theme to avoid any adverse effects. You can find detailed instructions on creating and using a child theme in the WordPress Codex.

    4. Breadcrumbs Shortcode: Alternatively, you can also add the breadcrumb anywhere you want with the help of a shortcode. Just copy and paste this shortcode to the text editor of any post/page:

      [rank_math_breadcrumb]
    5. Support Forum: If you’re still facing issues after trying these steps, please feel free to reach out to our support forum here. Our team is available 24×7 to assist you with any further troubleshooting.

    We hope this helps in resolving the issue. If you have any other questions or need further assistance, please don’t hesitate to let us know.

    Sources:
    How to Make Your Theme Rank Math Compatible » Rank Math
    How to Enable Breadcrumbs on Your Website With Rank Math SEO » Rank Math
    Rank Math General Settings

    Hello I still require support.

    Hello,

    Thank you for your patience.

    The breadcrumbs code should be added to your theme’s single.php or header.php file. This way, you can reposition the appearance of it on your website:
    https://rankmath.com/kb/breadcrumbs/#theme-template-files

    If you’re unsure of how to add them or if those files are missing in your theme, we recommend getting in touch with your theme provider so they can help you add the code properly and modify its appearance as well.

    Hope that helps

    Hello I messaged my theme provider with what you told me and they said that as Rankmath is a 3rd party plugin, I need to ask you for help with this and not them.

    Hello,

    In this case, we can check your site and apply the breadcrumbs.

    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.

    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,

    We have logged in to your website and added the breadcrumb code to the header.php file of the ain Salient theme. We modified the breadcrumb code a bit so that it does not show on the homepage. Here’s the code that was added, it was added on line 73:

        // Rank Math Breadcrumbs.
        if (function_exists('rank_math_the_breadcrumbs') && !is_front_page()) {
            rank_math_the_breadcrumbs();
        }

    We also added some CSS to Appearance > Customize > Additional CSS to make sure that the breadcrumbs are not looking weird. Here’s the CSS that was added:

    .rank-math-breadcrumb {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px;
      border-radius: 5px;
    }

    We hope this helps you resolve the issue. If you have any other questions or concerns regarding Rank Math, please feel free to contact us again. We are always happy to help.

    Thank you for choosing Rank Math!

    Hello thanks for that. I was hoping that they would display within the blue header, is this not possible? Also the breadcrumbs are not within the margin and are hugging the side of the screen. How can I rectify this?

    It appears that the breadcrumbs have now disappeared. And I can no longer the code in the header.php

    Hello,

    Thank you for your patience.

    We’ve added the breadcrumbs to your header.php or single.php files, but they aren’t appearing on the blue header you’re referring to.

    Unfortunately, breadcrumbs customization already falls outside the scope of our support services, as they pertain to theme file modifications.

    We recommend getting in touch with your theme provider as they know for sure how to customize your theme and its appearance as we have already provided the code above.

    Looking forward to helping you.

    Hello, but the breadcrumbs aren’t appearing at all?

    Hello,

    Please add the code I shared here to your header.php file. Please note that when you update the theme the code will be removed – to rectify this you can use a child theme. If you’re unfamiliar with child themes, you can seek help from your theme developers.

    Regards

    Hello, ok thanks it’s on now. However, it seems the Rankmath breadcrumb function isn’t working as expected as it is only showing the ‘Home’ trail. Here is an example:

    On the page:

    https://nurserecruitmentx.com/services/free-trial/

    The breadcrumb is:

    Home » Free Trial

    Whereas it should be:

    Home » Services » Free Trial

    Hello,

    Thank you for your patience.

    The reason that it is not showing is that the /services/ is an actual page, and not the archive of your services post type.

    However, I have added this filter on your site to manually add the services in the breadcrumbs:

    add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) {
            //Adding to single posts
    	if(is_singular('services')){ // change to match the actual post type
                    $value[] = array(
    		        'Services', 
                    'https://nurserecruitmentx.com/services/', 
                    'hide_in_schema' => false
    		);
                    //add this value as the second item in array
    		array_splice( $crumbs, 1, 0, $value ); 
    		return $crumbs; 
    	}
    	return $crumbs;
    }, 10, 2);

    Hope that helps.

    Thanks a lot! May I know where you have added this code? As I don’t see it in the header.php and I liked to replicate it for other custom posts that such as Job Descriptions.

    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.

Viewing 15 replies - 1 through 15 (of 21 total)

The ticket ‘Breadcrumbs not showing’ is closed to new replies.