• Resolved edwinj

    (@edwinj)


    I have a standard woocommerce installation and am struggling with one small navigation issue. The breadcrumbs work just fine in the shop home and individual categories. However, once I navigate to a single product page, the breadcrumbs still appear, but they are no longer functional links — only static text.

    This requires the user to use the back button, sometimes 3-4 times to get to the shop home.

    I’m not running any woocommerce themes either, just the stock install.

    Has anyone else run across this before?

    https://wordpress.org/plugins/woocommerce/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Setup a child theme. This is so that your customization is not overwritten when the theme is updated.

    Next, make a file called functions.php with this content:

    <?php
    // custom home link for woocommerce
    add_filter( 'woocommerce_breadcrumb_home_url', 'woo_custom_breadrumb_home_url' );
    function woo_custom_breadrumb_home_url() {
      return 'http://www.my-domain.co.uk/shop/';
    }

    Alter the link to suit your site.

    Thread Starter edwinj

    (@edwinj)

    Thanks very much for the code snippet, but that function doesn’t do the trick, unfortunately. The breadcrumb text is still just static text on the single product page, with no live links.

    Please post the url to your shop.

    Thread Starter edwinj

    (@edwinj)

    http://bit.ly/UlK50e

    Thanks for taking a look

    The breadcrumb element is covered over by a later div element, and its the div element that is catching user clicks.

    Try adding this to your custom css:

    .woocommerce .woocommerce-breadcrumb{float:none;}

    Thread Starter edwinj

    (@edwinj)

    You solved it!!!!

    Thanks so much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘woocommerce breadcrumbs not working on single product pages’ is closed to new replies.