Support » Plugin: WooCommerce » Issue with shop/product navigation

  • Resolved twomixers

    (@twomixers)


    Hello,
    I’m having an issue with the product navigation for my product pages. For some reason the option for the in-shop navigation goes to the homepage, not the shop home.

    Home/Category/Product-Name

    How do I change this to link to the shop home and not the overall homepage? I’m adding WooCommerce to an existing site that used DiviBuilder so this is the first time I’ve had any issues with WooCommerce and I’m having tons of issues (see other posts. TYIA)

    • This topic was modified 1 year ago by twomixers.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support EastOfWest a11n

    (@eastofwest)

    Hi there!

    You can designate which page is your “Shop” page under WP Admin » Settings » Products » General » Shop pages, like in the example below, where a page with the title “Shop” has been assigned:

    Screenshot showing the shop page setting

    It is possible to assign the same page as both the “Shop” and the “Homepage” page, which appears is the case on your site. Creating another, separate page, and assigning that to the setting above, will separate your “Homepage” from your “Shop” page. The WooCommerce Pages doc explains it all in more detail.

    On another note, if you’re having issues with Divi, please do reach out to their support for Divi specific help.

    Thread Starter twomixers

    (@twomixers)

    that’s what I thought. Unfortunately I tried this before reaching out to you and it did not seem to work. I have the Shop designated as my shop page (not my homepage) but the link continues to go back to the homepage.

    Maybe I need to reach out to Divi for help but the product page that this shows on is the standard one created by Woo-Commerce (doesn’t use the Divibuilder) so I wasn’t sure they could help. Any other suggestions while I reach out to them? Thank you

    Thread Starter twomixers

    (@twomixers)

    It seems to be coming from the nav.woocommerce-breadcrumb, if that helps. Maybe there’s a plugin or CSS that can override this?

    <div id=”left area”>
    <nav class=”woocommerce-breadcrumb”>
    ::before
    Home
    ” / “Almond Crunch Pralines”
    ::after
    </nav> == $0

    Thread Starter twomixers

    (@twomixers)

    Thread Starter twomixers

    (@twomixers)

    Divi says there’s nothing they can do. They offered this code but it has the same issue:

    <script>
    jQuery( document ).ready(function() {
    if (jQuery(‘.woocommerce-breadcrumb’).length) {
    let Home = jQuery(‘.woocommerce-breadcrumb’).html();
    Home = Home.replace(/Home/,’Shop’);
    jQuery(‘.woocommerce-breadcrumb’).html(Home);
    }
    });
    </script>

    Thread Starter twomixers

    (@twomixers)

    Okay so Divi was able to solve the issue, I wanted to post to help others and to let you know the issue is closed. Sorry to blow you up. The solution ended up being that we needed to install a child theme and then alter the functions.php file with this code:

    add_filter( ‘woocommerce_breadcrumb_home_url’, ‘woo_custom_breadrumb_home_url’ );
    function woo_custom_breadrumb_home_url() {
    return ‘PROPER URL HERE’;
    }

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Issue with shop/product navigation’ is closed to new replies.