We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is your enhancement related to a problem? Please describe.
When you enter a Woocommerce category or use the search and the taxonomy is not available to facet on all the options are greyed out.
I would like the option to hide them completely.
This becomes a problem when you have a "brand" attribute with 100+ brands. I rather only show the relevant brands instead of all brands in the store.
Same goes for product categories. The list can become really big with greyed out categories instead of just showing the relevant ones.
Describe the solution you'd like
Hide all greyed out facets completely from the facet.
The text was updated successfully, but these errors were encountered:
This would be an interesting option @Zyles, thanks. In the meantime, the ep_facet_widget_term_html filter can be used to achieve a similar result:
ep_facet_widget_term_html
add_filter( 'ep_facet_widget_term_html', function( $html, $term ) { return ( ! empty( $term->count ) ) ? $html : ''; }, 10, 2 );
Note: worth pointing out the "similar" there, as the search field displayed above the list will not use the correct number of terms being displayed.
Sorry, something went wrong.
felipeelia
Successfully merging a pull request may close this issue.
Is your enhancement related to a problem? Please describe.
When you enter a Woocommerce category or use the search and the taxonomy is not available to facet on all the options are greyed out.
I would like the option to hide them completely.
This becomes a problem when you have a "brand" attribute with 100+ brands. I rather only show the relevant brands instead of all brands in the store.
Same goes for product categories. The list can become really big with greyed out categories instead of just showing the relevant ones.
Describe the solution you'd like
Hide all greyed out facets completely from the facet.
The text was updated successfully, but these errors were encountered: