• Resolved wunmi2016

    (@wunmi2016)


    Hello Anthony,

    The breadcrumb works fine and i styled it to look like an arrow with css. It shows up on shop page, category pages, but does not show up on the cart page and checkout page. Also does not show on the wordpress pages too.

    Any help with this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Anthony Hortin

    (@ahortin)

    Hi,

    The reason it doesn’t show up on the Cart or Checkout pages is because these particular pages are simply using a Shortcode to display the content and the WooCommerce breadcrumbs don’t show on the regular template pages.

    One way you could get around this is by duplicating the default template and then modifying that template to include the WooCommerce Breadcrumbs in the position where you’d like it to appear.

    To add the WooCommerce breadcrumbs into a template, you’d use the following code

    <?php woocommerce_breadcrumb(); ?>

    You’d then need to edit the Cart and Checkout page to set it to use your new template that you’ve created.

    Plugin Author Anthony Hortin

    (@ahortin)

    Just having another think about this…

    Try this snippet of code in your functions.php file. This should add the breadcrumbs just above your Page title on the cart and checkout pages.

    <?php
    function mytheme_show_woocommerce_breadcrumbs() {
    	if( ( is_checkout() || is_cart() ) && is_main_query() ) {
    		woocommerce_breadcrumb();
    	}
    }
    add_action( 'get_template_part_content', 'mytheme_show_woocommerce_breadcrumbs' );
    ?>
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Breadcrumb format not changing on all pages’ is closed to new replies.