Support » Plugin: WooCommerce » WooCommerce Home Page and Category issues

  • I’m having a couple of issues at the moment.
    So let us dive into the first one. When looking at the Shop page you can see the pagination which currently shows Home/Market. if I select a product it changes to this Home / Apparel / Childrens / ONP Embroidered Baby Bib you will notice the shop homepage of Market has disappeared and the Home is still there, which directs you to the sites home page, not the shop home. I want to change it to be market/Apparel / Childrens / ONP Embroidered Baby Bib So basically I just want the Home to be replaced with the market and I want the market visible at all times regardless of where you are in the shop. How can this be resolved?

    Okay on to the next issue. I have a series of categories for my items and for some reason, I can’t seem to add category navigation to the /shop/ page and not just the items individually.

    When I created a widget area called WooCommerce and place the category widget in it for some reason it was not showing. I don’t have a sidebar on the site regularly outside the blog and its pages. That said I need to make sure that this widget and widget area only show when people are in the shop.

    Thank you for the help in advance.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi;

    for first issue please place this snippet in your theme/child theme functions.php

    add_filter( 'woocommerce_breadcrumb_defaults', 'ywp_change_breadcrumb_home_text' );
    function ywp_change_breadcrumb_home_text( $defaults ) {
        // Change the breadcrumb home text from 'Home' to 'Shop'
        $defaults['home'] = 'Shop';
        return $defaults;
    }
    
    add_filter( 'woocommerce_breadcrumb_home_url', 'ywp_custom_breadrumb_home_url' );
    function ywp_custom_breadrumb_home_url() {
        return wc_get_page_permalink( 'shop' );
    }

    and second issue:
    Woocommerce show its widget just in product archives(shop, product category, pproduct tag and product custom taxonomies) and if you want to show category in blog pages like wordpress default pages, blogs and blog archives, you can use Menus

    Go to Appearance > Menus and create new menu and then go toAppearance > Widget and use Menu widget

    IMPORTANT: if you not found Product Categories in Appearance > Menus, use the Screen Options button placed in top right(or left) corner on screen

    Good luck

    @yazdaniwp
    I implemented that code as you directed and my site had a fatal error and crashed the server. I’m not sure what caused this but…

    OK
    I tested and work fine,

    Active wordpress debug and check what caused error

    Check following link to how to active debug in wordpress:
    https://codex.easypropertylistings.com.au/article/165-how-to-enable-wordpress-debug-only-for-your-ip-address

    Im looking into it

    Im still looking into this

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WooCommerce Home Page and Category issues’ is closed to new replies.