Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #16515


    I’ve noticed that the breadcrumbs on product pages of products that are within a subcategory have the parent category stripped from the breadcrumb.

    E.g If I have Home -> Product Parent Category -> Product Sub Category -> Product, the breadcrumb renders “Home” >> Product Sub Category >> Product.

    Breadcrumbs for products within parent categories render fine…

    How do I fix this?





    Please try the custom breadcrumb code I posted here: https://kriesi.at/support/topic/ (Purchase code hidden if logged out)(Purchase code hidden if logged out) -product-page – I asked Kriesi to use it for the next update.

    Best regards,



    Hey Dude,

    Thanks for the help, I’m a little unsure as to what code to replace, could you possibly give me a block to search for?

    Best regards,



    Yes, open up abundanceframeworkphpclass-breadcrumb.php and replace following code with the custom php/breadcrumb code:

    /* If there's an archive page, add it to the trail. */
    if ( !empty( $post_type_object->has_archive ) && function_exists( 'get_post_type_archive_link' ) )
    $trail[] = '<a href="' . get_post_type_archive_link( $post_type ) . '" title="' . esc_attr( $post_type_object->labels->name ) . '">' . $post_type_object->labels->name . '</a>';


    Hi Peter,

    I replace the code, but the breadcrumbs for the subcategories are still being stripped…


    Strange, it seems to work on my test server. I’ll mark this thread for Kriesi because he needs to update the breadcrumb class anyway and then he can do some testing with sub categories, etc. too.


    Couldnt reproduce the issue either but I will start working on a breadcrumb plugin for woocommerce that hooks into the existing breadcrumb navigation and edits it accordingly.

    Once I have done that the theme will get its update ;)

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Product Page Breadcrumbs’ is closed to new replies.