Tagged: delete, product category, shop
-
AuthorPosts
-
January 31, 2018 at 10:10 am #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?
January 31, 2018 at 12:08 pm #905525Yes, 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 .-)- This reply was modified 6 years, 10 months ago by AnnemarieDoolin.
January 31, 2018 at 7:53 pm #905731Adding 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; }
February 1, 2018 at 8:27 am #906029Hi pixelsaft,
Thanks for sharing your solution, much appreciated :-)
Best regards,
RikardFebruary 1, 2018 at 9:21 pm #906471Hi 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
February 2, 2018 at 6:51 am #906660Hi 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,
RikardFebruary 2, 2018 at 12:30 pm #906819Hi 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, 10 months ago by Netzie.
February 3, 2018 at 11:37 pm #907315Hi,
Do you have any cache activated at the site?
Best regards,
BasilisFebruary 4, 2018 at 4:00 pm #907549Hi Basilis
Nope … Not that I know about
Best regards
Peter
February 5, 2018 at 6:31 am #907754Hi 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,
VictoriaFebruary 5, 2018 at 11:55 am #907876Hi Victoria
Absolutely – Thanks for your magic!
Feel free to edit anything to get the job done! ;-)Hugs
Peter
February 5, 2018 at 2:25 pm #907992Hi Peter,
I don’t seem to find the page with the issue. Can you please give us a link to the page?
Best regards,
VictoriaFebruary 5, 2018 at 2:43 pm #908013any shop page (see side panel on the left)
https://herbalcenter.dk/herbalife/vaegttab/February 5, 2018 at 3:46 pm #908049I 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/ —February 6, 2018 at 10:22 am #908448Hi 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,
VictoriaFebruary 6, 2018 at 12:01 pm #908511Hi 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
February 6, 2018 at 12:08 pm #908517Hi Peter ,
I don’t see this code being applied to that element. There must be an error in the code.
Best regards,
VictoriaFebruary 6, 2018 at 1:02 pm #908543Annemarie 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 magicFebruary 6, 2018 at 1:19 pm #908553Hi 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!
February 6, 2018 at 8:11 pm #908769Hi,
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 -
AuthorPosts
- The topic ‘Disable category "Uncategorized" in shop breadcrumb’ is closed to new replies.