how do i solve this breadcrumbs problem?

#995865
  • Chong li
    Rank Math free

    Hi I would like to know that when i insert breadcrumbs shortcode of rank math to my wordpress site, i use the generatepress theme, i set menu-sub menu(page), but the breadcrumbs does not show: home>menu>sub menu, it showed: home>page, how do I solve this problem?

    Please check the screenshot:
    https://snipboard.io/tpGwLU.jpg

    Thank you.

    Regards

    Lee

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    We apologize for the issue you are facing with the breadcrumbs on your WordPress site using the GeneratePress theme. It seems that the breadcrumbs are not displaying as expected when you use the shortcode.

    To resolve this issue, please ensure that you have correctly set up the breadcrumbs in your theme. Here are a few steps you can follow:

    1. Check Theme Support: Ensure that your theme supports Rank Math’s breadcrumbs. You can do this by going to Rank Math SEO → Status and Tools → System Info → Active Theme and checking if rank-math-breadcrumbs is listed under Theme features.
      Rank Math Breadcrumbs theme features

    2. Use the Correct Shortcode: Make sure you are using the correct shortcode [rank_math_breadcrumb] in the appropriate location within your page or post editor.

    3. Disable Other Breadcrumbs: If there are other plugins or theme settings that might be adding their own breadcrumbs, consider disabling them to avoid conflicts.

    4. Check Page Settings: Ensure that the page settings for your sub-menu page are correctly configured in WordPress. Sometimes, the parent-child relationship may not be set properly, which can affect how breadcrumbs are displayed.

    5. Custom Code: If you are comfortable with coding, you can also add custom code to your theme’s functions.php file to ensure that the breadcrumbs display correctly for your specific setup.

    If you continue to experience issues after trying these steps, please reply to this ticket with your site URL so that a human agent from our support team can assist you further. Thank you for raising this concern, and we’re here to help!

    This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.

    Chong li
    Rank Math free

    I have set it. please check whats problem.

    Thank you.

    Hello,

    Can you please confirm if the “Team Member Levels” is a child page of the “Account” page?

    To add the “Account” page in the breadcrumbs, you’ll have to set this as a parent page of your “Team Member Levels” page.

    Alternatively, you can use and modify the following filter code on your website to change the breadcrumbs on your pages:

    /**
     * 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);
    

    Here’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how it goes. Looking forward to helping you.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this ticket.