Your search is in good hands

  • Pricing
  • Documentation
    • User guides
    • Support
    • Features
      • Roadmap
      • Artificial Intelligence
      • Elasticsearch
      • OpenSearch
      • Solr
      • Algolia
      • Swiftype (soon)
      • Hosting
      • Addons (Plugins, themes, features)
    • Blog
  • Demo
    • All Demos
    • Testimonials
    • Showcase
  • My Licenses
    • Login
    • Why us
    • Contact us
Menu
  • Pricing
  • Documentation
    • User guides
    • Support
    • Features
      • Roadmap
      • Artificial Intelligence
      • Elasticsearch
      • OpenSearch
      • Solr
      • Algolia
      • Swiftype (soon)
      • Hosting
      • Addons (Plugins, themes, features)
    • Blog
  • Demo
    • All Demos
    • Testimonials
    • Showcase
  • My Licenses
    • Login
    • Why us
    • Contact us

Home » Your configuration journey, step by step » Add-ons » Theme add-on » Collapse taxonomy hierarchies

Collapse taxonomy hierarchies

451 views 0 April 7, 2017 Updated on July 13, 2019

Collapse facet hierarchies

If your stores uses a lot of parent-child categories and you want to use them as facets (filters), it can be a real mess visually. What you need then is a way to collapse your categories: only show the children categories when the visitor needs to show and select them.

 

Collapse all facet category hierarchies
Collapse all facet category hierarchies

Here is the procedure:

  1. Click on the button to open the Theme facets settings section
  2. Select the option and save it

 

This option will collapse all facets marked as “hierarchies” as shown below:

Facet category marked as hierarchy
Facet category marked as hierarchy

In the previous screen, in action (1), the facet “Knowledge base category” is marked as “hierarchy”. It will therefore be collapsed by the Theme extension option as shown below:

Facet hierarchy completly collapsed
Facet hierarchy completely collapsed

(1) When first shown, the facet hierarchy is effectively totally collapsed. If we click on the collapsed icon, we can see, and select, the hidden sub categories:

First level of sub categories shown
First level of sub categories shown

Above, after clicking the collapsed icon(1) of “Developer”, the sub categories are revealed. The “Javascript” sub-category collapsed icon (2) can now be clicked.

Notice that the hierarchy remembers which categories are shown or hidden. So, if a user comes back, it’s previous selections will be displayed again.

 

 

Was this helpful?

Yes  No
Related Articles
  • Listable add-on
  • MyListing add-on
  • YITH WooCommerce Ajax Search add-on
  • Embed Any Document add-on
  • PDF Embedder add-on
  • bbPress add-on
Expand All Collapse All
  • What is it WPSOLR ?
    • The standard WordPress SQL search
    • The WPSOLR search with Elasticsearch, Apache Solr, or Algolia
  • Your configuration journey, step by step
    • Install Apache Solr
    • Hosted Apache Solr and SolrCloud Services
    • Install Elasticsearch
    • Elasticsearch Hosting
    • Configure your indexes
      • Generate a test Apache Solr index
      • Generate a test Elasticsearch index
      • Create an Apache Solr index
      • Create a SearchStax SolrCloud index
      • Create an Elastic Elasticsearch index
      • Create an Algolia index
      • Create an Elasticsearch index
      • Create an Opensolr Solr index
      • Create a Qbox Elasticsearch index
      • Create an ElasticPress Elasticsearch index
      • Create an Aiven Elasticsearch or OpenSearch index
      • Create a Bonsai Elasticsearch index
      • Create an Amazon Amazon Elasticsearch or Amazon OpenSearch index
      • Create an ObjectRocket Elasticsearch index
      • Create a Cloudways Elasticsearch index
      • Create an Alibaba Cloud Elasticsearch index
      • Create a Compose Elasticsearch index
      • Connect to an Apache Solr index
      • Connect to an Elasticsearch index
    • Add-ons
      • bbPress add-on
      • YITH WooCommerce Ajax Search add-on
      • SEO add-ons
        • Yoast SEO add-on
        • All in One SEO add-on
      • Listable add-on
      • ACF add-on
      • Advanced Scoring add-on
      • Cron Scheduling add-on
      • Theme add-on
        • Filters layouts
          • Radiobox & Checkbox Layout
          • Numeric Range Layout
          • Colour Picker Layout
          • Range Slider Layout
        • Add Ajax to the current Theme
        • Collapse taxonomy hierarchies
        • Custom Facets CSS
      • WPML add-on
      • Premium add-on
        • Manage more than one Elasticsearch or Solr index
      • PDF Embedder add-on
      • Geolocation add-on
      • AI Natural Language APIs add-on
        • Amazon Comprehend
        • Google Natural Language
        • Aylien Text Analysis
        • MeaningCloud
        • Qwam Text Analytics
      • Toolset Types add-on
      • AI Image and OCR APIs add-on
        • Google Vision
        • Amazon Rekognition
      • Embed Any Document add-on
      • MyListing add-on
      • Polylang add-on
      • WooCommerce add-on
      • Cross-domain search add-on
      • Directory+ add-on
      • Toolset Views add-on
      • Listify add-on
      • Jobify add-on
      • Query Monitor add-on
  • Quick start
Login
Support
Privacy policy
  • Terms and Conditions
  • © 2020 wpsolr.com. All Rights Reserved.
Youtube
Roadmap