• Resolved steadi22

    (@steadi22)


    Hello,on my woocommerce shop, when I select a product, actually I visualize this as breadcrumbs:

    HOMEPAGE ICON > CATEGORY PRODUCT

    I need to have

    SHOP > CATEGORY PRODUCT
    or
    HOME > SHOP > CATEGORY PRODUCT

    In alternative, mantain HOMEPAGE ICON, but change its URL on Shop URL.

    Is it possible?
    I tried these solutions
    https://docs.woocommerce.com/document/customise-the-woocommerce-breadcrumb/
    , inserting on function.php file these rows

    /**
    * Replace the home link URL
    */
    add_filter( ‘woocommerce_breadcrumb_home_url’, ‘woo_custom_breadrumb_home_url’ );
    function woo_custom_breadrumb_home_url() {
    return ‘https://woocommerce.com’;
    }

    but nothing happens: HOME ICON goes always to homapage.

    Many thanks!

    • This topic was modified 4 years ago by steadi22.
    • This topic was modified 4 years ago by steadi22.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author creativethemeshq

    (@creativethemeshq)

    Hello @steadi22,
    This filter won’t work because the breadcrumbs in our theme are not coming from WooCommerce but from our theme and you can display them on all pages, not only on Shop pages.

    Unfortunately there is no way to change the home page link at the moment but we will think more about this and will see what we can do.

    Thanks for this suggestion.

    Thread Starter steadi22

    (@steadi22)

    many thanks for your answer.
    in alternative to change Home Page Link, how can I do to make appear SHOP link after it, and before categories?

    Maybe it’s an issue due to permalinks to respect in woocommerce / categories?

    thanks

    • This reply was modified 4 years ago by steadi22.
    Thread Starter steadi22

    (@steadi22)

    Hello again, searching in your support topics, i found this post:
    https://www.ads-software.com/support/topic/breadcrumbs-are-not-displayed/

    I think maybe this filter could help me
    blocksy:breadcrumbs:items-array
    but i added it in functions.php without success at the moment.

    I would appreciate if you can take a look to the website. This is the shop page
    https://www.abipastificioartigianale.it/prodotti/

    RAVIOLI and ORECCHIETTE are two categories;
    for example, clicking on RAVIOLI you will arrive to subcategories page (CARNE / PESCE / VEGETARIANI….) but breadcrumbies are now showing only home page, and current page (RAVIOLI), but not previous page, which is the shop page.

    Same thing going under subcategories page and finally to product page.

    Maybe there is some conflict with permalinks structure?
    I can still change it, as the website is going online only today in the next few hours..

    Could you help me indicating exactly where I have to add the filter and which are the variables of URLS to insert in?

    Many thanks for the support.

    • This reply was modified 4 years ago by steadi22.
    Theme Author creativethemeshq

    (@creativethemeshq)

    Hey @steadi22,
    Please view this thread – https://www.ads-software.com/support/topic/change-breadcrumbs-in-taxonomy/

    Or you can use the Yoast breadcrumbs to make something more custom.

    To use the Yoas breadcrumbs you will have to:
    1. Install and activate Yoast plugin
    2. Activate the breadcrumbs in Yoast settings
    3. Go to Customizer -> General -> Breadcrumbs and select Yoast from the dropdown.

    Hope this helps.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘breadcrumb “home” URL link change’ is closed to new replies.