10up / ElasticPress

A fast and flexible search and query engine for WordPress.
https://elasticpress.io
GNU General Public License v2.0
1.25k stars 312 forks source link

Remove Filters from Instant Results #3954

Open feliciaoctocog opened 3 months ago

feliciaoctocog commented 3 months ago

Describe the bug

We'd like to remove filters from the Instant Results. Currently, we can remove them with CSS, but the problem is the "Show More Options" still appears even though there are no more options.

Steps to Reproduce

  1. Go to Instant Results
  2. Add "Post Type" for filter
  3. No options exist to remove single or multiple post types. It will show All post types.

Screenshots, screen recording, code snippet

If removing via filters via CSS the 'Show More Options' button appears. See here: [(https://youtu.be/uN1IXzdFpEc)] This indicates a better solution is necessary to remove these filters so they are not counted in the list to trigger the show more options button.

Environment information

No response

WordPress and ElasticPress information

No response

Code of Conduct