Shop Breadcrumb

  • I have just moved from Yoast Premium and Yoast for woocommerce premium in order to try out Rank Math as my Schema theme was not recognizing my Yoast Page Breadcrumb title. But using Rank Math I have a new issue.

    I have a page called “Shop” it is my Woocommerce base shop page.
    When a customer selects a category or procuct, I would like the breadcrumb to display
    Home -> Shop -> CategoryName
    or
    Home -> Shop -> CategoryName -> Product Name

    Instead I am getting
    Home – CategoryName and Home -> CategoryName -> ProductName with no reference to the base Shop page.

    I have added the Term “Shop” as the breadcrumb page title for the Shop page, and the Shop page has been set as the shop page in WooCommerce.

    Any help is appreciated.

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I am afraid that the Rank Math breadcrumbs function does not add the page name on the breadcrumbs. This would require some custom code to modify the crumb items using the following filter:

    /**
     * Allow changing Breadcrumb elements in BreadcrumbList snippet
     *
     * @param array $entity Breadcrumb entity
     */
    add_filter( 'rank_math/snippet/breadcrumb', function( $entity ) {
    	return $entity;
    });

    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.

Viewing 1 replies (of 1 total)

The ticket ‘Shop Breadcrumb’ is closed to new replies.