Hide empty categories when layered filter is set to OR
An easy setting that already is made by Nicola Mustone - WooCommerce. Pleas enable this by default or give a choice.
woocommerce/includes/widgets/class-wc-widget-layered-nav.php
if ( $count > 0 ) {
echo '<li ' . $class . '>';
echo '<a href="' . esc_url( apply_filters( 'woocommerce_layered_nav_link', $link ) ) . '">' . $term->name . '</a>';
echo ' <small class="count">' . $count . '</small></li>';
}

22 comments
-
Anonymous commented
Hey there, I’m David. I’m a software engineer living in Jersey City, NJ 07305, USA. I am a fan of web development. I’m also interested in Cyber security, cryptography, malware, social engineering, internet and new media. You can visit my company website with a click on the button above.
https://good-antivirus.com/norton-setup/
https://sites.google.com/site/wwwwebrootscomsafe/ -
Anonymous commented
Thanks for sharing
For showtime anytime channel activation on roku, visit https://www.roku-com-link.net/showtime-anytime-com-activate -
adi mishra commented
McAfee Antivirus is the most trusted and preferred software. To get the benefit of it the user id recommended to install McAfee to their device and activate McAfee for complete use of it.
https://mcafee-com-activate.uk.com -
adi mishra commented
Visit https://m-mcafeeactivate.uk.com to activate mcafee security. Enter your product key code present on your McAfee retail card, login and get protected.
-
adi mishra commented
Mcafee Antivirus has recognized to be an effective way of keeping up your devices and your data safe from getting infected by any hackers and virus attackers. https://mcafee.com-activate.uk.com will help the user to get easy support.
-
adi mishra commented
Roku provides the simplest way to stream entertainment to your TV. On your terms. With thousands of available channels to choose from.
https://ww-roku.com/link -
adi mishra commented
To install Norton that you purchased from http://n-nortoncom.com or from a retail store, you must create a Norton account or add the purchased product to the existing account.
-
adi mishra commented
Protect all your data with Norton subscription. http://n-nortoncom.com/setup makes it easy for you to set up your Norton protection, check your security status, and extend your protection to other PCs, Macs, smartphones, and tablets.
-
adi mishra commented
Activate your Webroot Account by entering your Webroot Activation Code. Facing issues…visit http://enter-webroot.com/safe to get easy and quick steps to activate and install webroot with key code.
-
adi mishra commented
webroot Antivirus is the best program to protect your device from any threat and virus. Get started with your Webroot Antivirus today at http://enter-webroot.com
-
adi mishra commented
With https://xnorton.com/setup user can get the best protection against harmful threats and viruses. Norton setup protects your data and keeps your information private secure.
-
adi mishra commented
Norton Antivirus can only work when it has been activated.To activate your Norton Setup, the user is required to Enter 25 digit Norton Product Key.
https://xnorton.com -
adi mishra commented
Norton antivirus protects your data and important information from getting lost and damaged. Get your norton antivirus installed in your PC today at https://symnorton.com/setup
-
adi mishra commented
Mcafee Antivirus helps the user protect your data from harmful malware.Activate your Mcafee antivirus by going through with https://mamcafee.com/activate
-
adi mishra commented
Get started with office setup at https://officecom-setup.uk.com. It provide ease of working and systematic arrangement of your worksheet.
-
adi mishra commented
Activate your Mcafee antivirus by going through with https://mcafeecom-activate.uk.com. Mcafee Antivirus helps the user protect your data from harmful malware.
-
adi mishra commented
office setup provide different and amazing sort of applications like Excel, PowerPoint, Word, Outlook etc.Get started with office setup at http://vww--office.com/setup
-
Anonymous commented
Is it resolvet? It does not work on my site...
-
Anonymous commented
@jimmy when the css is applied the filter with zero count don't leave the space, there are gaps where the filter attribute was previously showing. So e.g. if there is a 1st filter on top next there is a gap/s and then the other filter appears.
-
Jimmy commented
Here's a css workaround:
.widget_layered_nav span {
display: none;
}.widget_layered_nav a + span {
display: inline;
}