Home / Forums / WoodMart support forum / Hide empty categories in header
Home › Forums › WoodMart support forum › Hide empty categories in header
Hide empty categories in header
- This topic has 7 replies, 2 voices, and was last updated 7 years, 2 months ago by
Artem Temos.
-
AuthorPosts
-
August 28, 2018 at 9:14 pm #74750
makentosiusParticipantHello,
I am writing you because I try to hide empty categories in the header when browsing a category.
I also don’t understand why some plural translations is not working.
I showed the problems in the attached file. You can also find it on my website link.
Thank you in advance.
Best regards,
MantasAttachments:
You must be logged in to view attached files.August 29, 2018 at 6:07 am #74774
Artem TemosKeymasterHi,
In this situation are you able to provide us your FTP and WordPress admin access so we could troubleshoot it and provide you with a solution?
Regards
August 29, 2018 at 6:56 am #74792
makentosiusParticipantHello, thank you for the response
August 29, 2018 at 7:39 am #74801
Artem TemosKeymasterHi,
Translation for “Other” is missed in Loco translate http://prntscr.com/ko4dic
To hide empty categories, you need to edit the file
woodmart/inc/woocommerce.phpas shown on the screenshot http://prntscr.com/ko4flpRegards
August 29, 2018 at 9:03 am #74815
makentosiusParticipantHello,
Thank you, the translation solved the problem. Before it used to be the “%s product” translation, and with the last update it stopped working because you switched to the other one I guess. So this is solved now.
Thank you with the offer to hide empty categories in the header, but I don’t really agree with the solution. I refuse to modify the core code, because with the every update I would lose the custom change. Is there a way to put the custom edit in the child template’s functions.php file?
Best regards,
MantasAugust 29, 2018 at 9:08 am #74817
Artem TemosKeymasterHi,
Sure, you can copy the whole function
woodmart_product_categories_nav()to the child theme functions.php file and do your modification there.Regards
August 30, 2018 at 8:08 pm #74969
makentosiusParticipantThank you, it solved the problem.
August 31, 2018 at 6:02 am #74989
Artem TemosKeymasterGreat, you are welcome.
-
AuthorPosts
Tagged: hide empty category
- You must be logged in to create new topics. Login / Register