Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #199451

    hi
    this is my link http://www.bagshoecleaningsanctuary.com/shop/product-category/handles-protector/

    this product category page is currently under “Designer Bag Accessories” level., but breadcrumb is showing “product” which is going to a different page.

    Is there anyway that I can make it to reflect going back to this page http://www.bagshoecleaningsanctuary.com/designer-bag-accessories/ instead?

    #199886

    Hi papachew!

    Did you set up the “Handle and Strip Protector” category as a child category of “Designer Bag Accessories”? If not go to WooCommerce > Products > Categories and select the “Designer Bag Accessories” category as parent category and it should pop up in the breadcrumb.

    Cheers!
    Peter

    #200155

    hi Dude, thxs for responding

    But I dont see any “Designer Bag Accessories” listed in product categories listing because it is actually created from pages. So I cant set up a child under “Designer Bag Accessories” as you have suggested

    any other way to go about this?..can i change the php or something? Are you able to guide me in this?

    My sub-categories under “Designer Bag Accessories” were actually previously from a product page but I’ve shifted it to this current structure.

    I had help for the previous breadcumb issue which I was advised to changed the php. I hope the below link help

    http://www.kriesi.at/support/topic/breadcrumbs-issue/

    thxs

    #200184

    Hi!

    You can use following code:

    
    if(!function_exists('avia_modify_event_breadcrumb'))
    {
        function avia_modify_event_breadcrumb($trail)
        {
            if(is_tax('product_cat', 55))
            {
                $newtrail = array('<a href="http://www.bagshoecleaningsanctuary.com/designer-bag-accessories/">Designer Bag Accessories</a>');
                array_unshift($newtrail, $trail[0]);
                if(is_single()) $newtrail['trail_end'] = $trail['trail_end'];
                $trail = $newtrail;
            }
    
            return $trail;
        }
    
        add_filter('avia_breadcrumbs_trail','avia_modify_event_breadcrumb');
    }
    

    Insert the code into functions.php (at the very bottom of the file)..

    Cheers!
    Peter

    #201004

    hi Peter

    I did as you advised but it does seems to be working still

    breadcrumb is still the same as before http://www.bagshoecleaningsanctuary.com/shop/product-category/stuffing-pillow/

    #201008

    Hi!

    But it seems to work for me now? The “Handle and Strip Protector” category archive page displays a breadcrumb link to the “Designer Bag Accessories” page: http://www.clipular.com/c/5901565328097280.png?k=mfu8RTdmeKv-w3vybmKaZLP_Esw and does not show “Product”. Maybe try to clear the browser cache.

    Cheers!
    Peter

    #201053

    Hi Peter,

    no wonder, i was clicking on the other links.

    If I want the other 3 categories under “Designer Bag Accessories” to have same functions

    How do I do that?

    Can I modify code to below like this?

    if(is_tax(‘product_cat’, 37, 54, 55, 56, ))

    #201447

    Hi!

    Yes – it would look like

    
    if(is_tax('product_cat', array(37,54,55,56) ))
    

    and instead of 37,54,55,56 insert the ids of your terms (comma separated).

    Best regards,
    Peter

    #202499

    hi Peter,

    what ado you mean by “ids of your terms”…could you give an example pls?

    #202514

    Hey!

    See http://www.wpbeginner.com/beginners-guide/how-to-find-post-category-tag-comments-or-user-id-in-wordpress/ – basically you need to search and use the ids of your product categories.

    Regards,
    Peter

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.