Breadcrumbs not showing correctly as per rankmath configuration

#187862
  • Resolved Christopher Morgan
    Rank Math free

    When I click on a product via my shop page, it takes me to the product page and I can see the breadcrumbs listed above the product. However, those breadcrumbs don’t appear to be the same as those configured in the Rankmath plugin configuration. For example, the separator character is /, whereas its >> in the rankmath dashboard. Also, despite me chosing the primary category for this product, that’s also not currently being honored and the breadcrumb is showing a different category for the product (there are multiple categories configured).

    It seems that some other breadcrumb configuration is taking precedence over that from Rank math. Any suggestions?

    One of the pages in question:

    https://bouncelearningkids.com/product/money-search-canada-worksheets/

    This products is listed in the following categories:

    Money worksheets <– this is the one I’ve made primary
    Color worksheets
    Euro related worksheets
    Grade 1 worksheets
    Grade 2 worksheets
    Grade 3 worksheets
    Grade 4 worksheets
    Numeracy worksheets
    Printable worksheets
    Puzzles and games worksheets
    Visual perception worksheets

    This is the breadcrumb trail on the product page:

    Home / Numeracy worksheets / Money search Canada worksheets

    I’m using Cloudflare but I purged the entire cache to eliminate caching from being the issue. It didn’t change anything.

    Wordpress 5.7.1
    Rankmath 1.0.62

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

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for the delay and for any inconvenience this issue may have caused you.

    I’ve checked your site, and it seems that the breadcrumbs showing on your site are being generated by WooCommerce. Here’s a screencast for your reference:
    https://i.rankmath.com/9yPCke

    You can check this link on how to enable Rank Math Breadcrumbs on your site:
    https://rankmath.com/kb/breadcrumbs/#3-editing-your-theme-child-theme

    I hope that helps. Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.

    I’ve applied the code but I’m still getting the same Woocommerce breadcrumbs.

    This is what my child theme functions.php now looks like:

    <?php

    function my_et_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_script( ‘divi’, get_stylesheet_directory_uri() . ‘/js/scripts.js’, array( ‘jquery’, ‘divi-custom-script’ ), ‘0.1.1’, true );
    }
    add_action( ‘wp_enqueue_scripts’, ‘my_et_enqueue_styles’ );

    /* === Add your own functions below this line ===
    * ——————————————– */

    add_filter( ‘et_pb_blog_image_width’, ‘custom_blog_image_width’ );
    add_filter( ‘et_pb_blog_image_height’, ‘custom_blog_image_height’ );

    function custom_blog_image_width($width) { return ‘9999’; }
    function custom_blog_image_height($height) { return ‘9999’; }

    /**
    * Disable Gutenberg Sidebar Integration
    */
    add_filter( ‘rank_math/gutenberg/enabled’, ‘__return_false’ );

    ?>

    <?php if (function_exists(‘rank_math_the_breadcrumbs’)) rank_math_the_breadcrumbs(); ?>

    Hello,

    If you wish to apply the breadcrumbs code in the functions.php file, please use this custom function instead:

    /*
    * Add Rank Math Breadcrumbs just before the Single Post Content.
    */ 
    function rm_breadcrumbs( $content ) {
        if ( function_exists('rank_math_the_breadcrumbs') && is_singular() ) rank_math_the_breadcrumbs();
        return $content;
    }
    add_filter( 'the_content', 'rm_breadcrumbs' );

    Do make sure to remove woocommerce’s breadcrumbs to avoid duplication of breadcrumbs.

    Let me know how it goes. We are looking forward to helping 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.

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

The ticket ‘Breadcrumbs not showing correctly as per rankmath configuration’ is closed to new replies.