Hide empty categories in header
- This topic has 7 replies, 2 voices, and was last updated 6 years, 2 months ago by .
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
Home / Forums / WoodMart support forum / Hide empty categories in header
Home › Forums › WoodMart support forum › Hide empty categories in header
Hello,
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,
Mantas
Hi,
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
Hello, thank you for the response
Hi,
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.php
as shown on the screenshot http://prntscr.com/ko4flp
Regards
Hello,
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,
Mantas
Hi,
Sure, you can copy the whole function woodmart_product_categories_nav()
to the child theme functions.php file and do your modification there.
Regards
Thank you, it solved the problem.
Great, you are welcome.
Tagged: hide empty category
No account yet?
Create an Account