Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #905457

    Hi @all.
    if a product is selected on a product page in a store, the category “Uncategorized” will be displayed in the breadcrumb – unfortunately the category can not be deleted.

    How can I disable the output of the category in the breadcrumb only for the shop product pages?

    #905525

    Yes, Support could we get your help too…. this appeared on our shop yesterday too and we cannot find how to delete it. The category sits as the first item on the menu list so it is even more irritating. We have run out of solutions trying to delete it.
    Would really appreciate your GENIUS .-)

    #905731

    Adding this to the functions.php will remove the category from the breadcrumb.

    // Remove Category in Breadcrumb
    add_filter( 'avia_breadcrumbs_trail', 'remove_woocommerce_category_breadcrumb_trail', 20, 2 );
    function remove_woocommerce_category_breadcrumb_trail( $trail, $args ){
        if( is_product() ) {
            unset( $trail[count($trail)-2] );
        }
        return $trail;
    }
    #906029

    Hi pixelsaft,

    Thanks for sharing your solution, much appreciated :-)

    Best regards,
    Rikard

    #906471

    Hi Rikard,
    continuing on @annemariedoolin’s topic
    Our problem is not in (or at) the breadcrumb – But the product category list
    The uncategorized shows up on top of all category when empty and not empty? Very persistent – And I tried to “sort” it… It keep getting to the top – it’s driving me up the wall :-)

    Can you edit the script for us to do this and or both? :-)

    Thx

    #906660

    Hi Netzie,

    I’m guessing that you don’t use that category? Did you try to rename or delete it? https://wordpress.stackexchange.com/questions/83415/remove-rename-uncategorized-category-in-wordpress

    Best regards,
    Rikard

    #906819

    Hi Rikard
    I tried all… rename – delete, shoot, hidden wuit css (@annemariedoolin) killed – erased | turned off | burned | you name it!
    It’s more than stuck ;-) But I recon that your magic could do it?

    Don´t want to rename it or use it – I want it gone – My category are fine and is the way I want and need them :-)

    • This reply was modified 6 years, 9 months ago by Netzie.
    #907315

    Hi,

    Do you have any cache activated at the site?

    Best regards,
    Basilis

    #907549

    Hi Basilis

    Nope … Not that I know about

    Best regards

    Peter

    #907754

    Hi Peter,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #907876

    Hi Victoria
    Absolutely – Thanks for your magic!
    Feel free to edit anything to get the job done! ;-)

    Hugs

    Peter

    #907992

    Hi Peter,

    I don’t seem to find the page with the issue. Can you please give us a link to the page?

    Best regards,
    Victoria

    #908013

    any shop page (see side panel on the left)
    https://herbalcenter.dk/herbalife/vaegttab/

    #908049

    I do use a “Restrictions Plugin” to hide all Herbalife Products in my shop – Silly Rule from Herbalife Int.
    So you do need to be logged in to see the products … (For the time – The redirect in that plugin don’t work – should redirect NO ACCESS/ NON Logged in users to the LOGIN Page /min-konto/ —

    #908448

    Hi Netzie,

    Thank you. Well, the easiest way is to hide it via css

    
    .cat-item.cat-item-986 {
      display: none;
    }
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #908511

    Hi Victoria,

    That don’t work – The code is already in (Quick CSS) – But the cat stil shows?
    Maybe there is another way? Or I missed something?

    Peter

    #908517

    Hi Peter ,

    I don’t see this code being applied to that element. There must be an error in the code.

    Best regards,
    Victoria

    #908543

    Annemarie added it in quick css – Is there another way or somehow … Hmmm I moved the css code up… Now it works! + ?
    So there is something in our Quick CSS that was messing with it :-)

    Super cool … As long as it works!!
    THX!! For your magic

    #908553

    Hi Victoria

    Our mistake – We added a “space” between .cat-item and .cat-item-986 :-) That was totally bad!! And after adding in your magic code… It worked !!

    WRONG CODE
    .cat-item .cat-item-986 {
    display: none;
    }

    RIGHT CODE
    .cat-item.cat-item-986 {
    display: none;
    }

    Once again – Thanks!

    #908769

    Hi,

    Glad we could help!
    Please take a moment to review our theme and show your support https://themeforest.net/downloads
    To know more about enfold features please check – http://kriesi.at/documentation/enfold/
    Thank you for using Enfold :)

    Best regards,
    Basilis

Viewing 20 posts - 1 through 20 (of 20 total)
  • The topic ‘Disable category "Uncategorized" in shop breadcrumb’ is closed to new replies.