• Resolved samandella

    (@samandella)


    Hi

    I hope someone can help.

    I’ve changed the url of ‘home’ in woocommerce breadcrumbs e.g. home/shop/product so now ‘home’ doesn’t go to the website home page but to a different page named ‘collections’ but where do I change the text so it reads collections/shop/product instead of home/shop/product?

    I’ve looked everywhere!! Any ideas?

    https://www.ads-software.com/extend/plugins/woocommerce/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor James Koster

    (@jameskoster)

    Hey, take a look at this document which describes how to customise the WooCommerce breadcrumb; https://docs.woothemes.com/document/customise-the-woocommerce-breadcrumb/

    Thread Starter samandella

    (@samandella)

    Excellent!! Thanks very much ??

    Warning: PHP newbie.

    I, too, want to change the Home breadcrumb link to the Shop page. Sadly I don’t understand the solution stated as

    “add_filter( ‘woocommerce_breadcrumb_home_url’, ‘woo_custom_breadrumb_home_url’ );
    function woo_custom_breadrumb_home_url() {
    return ‘https://woothemes.com’;
    }

    Let’s say my shop page is at https://www.ccrt.net/store/ .
    What exactly would I want my ‘add_filter’ to say?
    And do i replace the add_filter function already in functions.php file?

    humbly,
    Kathie

    THis topic is marked as resolved but I still need help! Please see my previous post.

    kifiko,

    Do not replace add_filter function that already exist in functions.php file if you do not want to disrupt the proper integration of Woocommerce plugin into your theme.

    You only need to change URL after “return” to URL of your shop page, as I have done below:

    add_filter( ‘woocommerce_breadcrumb_home_url’, ‘woo_custom_breadrumb_home_url’ );
    function woo_custom_breadrumb_home_url() {
    return ‘https://www.ccrt.net/store/‘;
    }

    Insert this snippet after the last “}” on the end of the add_filter function already in youre functions.php file.

    Greetings

    Thanks so much for spelling this out for me, wellebit. Sadly I am still missing the mark in some way.
    Please see

    I added the snippet to \themes\ThemeName\functions.php such that the code now looks like

    add_filter( ‘wp_page_menu_args’, ‘et_add_home_link’ );
    add_filter( ‘woocommerce_breadcrumb_home_url’, ‘woo_custom_breadrumb_home_url’ );
    function woo_custom_breadrumb_home_url() {
    return ‘https://www.ccrt.net/store/’;
    }

    There was no } after the existing add_filter call. Can you tell me how I’ve messed up?

    Kathie

    Each theme has specific settings of woocommerce plugin. I Think I know the solution of the problem. However, it is not convenient to explain here the details. If you want, send me a functions.php file and I will try to set snippet to the right place, and I’ll return the modified file to your email. My email is [email protected]

    Nenad

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Woocommerce Breadcrumbs – Where to change 'home' text’ is closed to new replies.