{"id":11219,"date":"2024-08-28T18:33:58","date_gmt":"2024-08-28T15:33:58","guid":{"rendered":"https:\/\/creativethemes.com\/blocksy\/?post_type=documentation&#038;p=11219"},"modified":"2026-10-08T14:32:59","modified_gmt":"2026-10-08T11:32:59","slug":"shop-filters","status":"publish","type":"documentation","link":"https:\/\/creativethemes.com\/blocksy\/docs\/theme-blocks\/shop-filters\/","title":{"rendered":"Shop Filters"},"content":{"rendered":"\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6af79b4ff06c3&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6af79b4ff06c3\" class=\"wp-block-image size-full has-lightbox wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"3456\" height=\"2058\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/creativethemes.com\/blocksy\/wp-content\/uploads\/2024\/08\/Captura-de-ecran-din-2024-09-12-la-17.17.51.png\" alt=\"Shop Filters block displayed on a WooCommerce product archive\" class=\"wp-image-11350\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">The Shop Filters block in action.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong>Shop Filters<\/strong> block lets customers refine WooCommerce product listings using product categories, tags, brands, attributes and other supported taxonomies.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It forms part of Blocksy&#8217;s <a href=\"https:\/\/creativethemes.com\/blocksy\/docs\/woocommerce\/product-filters\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Product Filters<\/strong><\/a> system and can be placed in supported widget areas, the Filters Canvas or other suitable block-based shop layouts.<\/p>\n\n\n\n<div class=\"wp-block-group has-palette-color-8-color has-palette-color-1-background-color has-text-color has-background is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"is-style-info coblocks-alert-paragraph wp-block-paragraph\"><strong>Blocksy Pro required<\/strong><br>The Shop Filters block is part of the <strong>Product Filters<\/strong> module included with Shop Extra. WooCommerce, Blocksy Companion Pro and a Business or Agency plan are required.<\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\">Getting Started<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before adding the Shop Filters block, enable the Product Filters module:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Navigate to <strong>WordPress Dashboard \u2192 Blocksy \u2192 Extensions<\/strong>.<\/li>\n\n\n\n<li>Locate and expand the <strong>Shop Extra<\/strong> extension.<\/li>\n\n\n\n<li>Enable the <strong>Filters<\/strong> module.<\/li>\n\n\n\n<li>Open the block editor for the shop area where you want to display the filter.<\/li>\n\n\n\n<li>Search for <strong>Shop Filters<\/strong> in the block inserter and add it to the layout.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Select the block to choose what should be used for filtering. The available controls change depending on whether you select a taxonomy or a WooCommerce product attribute.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\">Taxonomy Filters<\/h2>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-995f960e wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:33.33%\">\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6af79b4ff26e0&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6af79b4ff26e0\" class=\"wp-block-image size-full has-lightbox wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"560\" height=\"1840\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/creativethemes.com\/blocksy\/wp-content\/uploads\/2024\/08\/Captura-de-ecran-din-2024-09-12-la-17.25.19.png\" alt=\"Taxonomy controls for the Shop Filters block\" class=\"wp-image-11351\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">Controls available when filtering by taxonomy.<\/figcaption><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<h3 class=\"wp-block-heading\">Filter By<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Select the taxonomy that should be used for filtering. Depending on your WooCommerce configuration, this can include product categories, tags, brands and other supported product taxonomies.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Custom taxonomies registered for WooCommerce products can also be used as filtering sources.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Display Type<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Choose how the available terms are arranged:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>List<\/strong> \u2013 displays the filter terms vertically.<\/li>\n\n\n\n<li><strong>Inline<\/strong> \u2013 arranges the terms horizontally and allows them to wrap onto additional rows when required.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Multiple Selections<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Enable <strong>Multiple Selections<\/strong> to let customers select more than one term from the same filter. Disable it when only one term should be active at a time.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Show Search Box<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Display a search field above the taxonomy terms so customers can quickly find a particular option when the filter contains a large number of choices.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The search field&#8217;s placeholder text can also be customised to better describe the available choices.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Show Checkboxes<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When multiple selections are enabled, display a checkbox alongside each taxonomy term to make the selection state clearer.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Show Hierarchy<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Preserve the parent-child structure of hierarchical taxonomies, such as product categories containing nested subcategories.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This option can also be used with hierarchical product-brand structures when the corresponding taxonomy supports them.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Show Images<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Display an image alongside taxonomy terms when image data is available for the selected taxonomy. This can be useful for visual category or brand filters where an image helps distinguish the available choices.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Show Counter<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Display the number of products that currently match each taxonomy term. The counters respond to the active filtering context so customers can see how many matching products remain available.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Exclude Category<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When filtering by product categories, exclude selected categories from the list of available filtering choices.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Show Reset Button<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Display a reset control that clears selections made through the filter and returns it to its initial state.<\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\">Attribute Filters<\/h2>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-995f960e wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:33.33%\">\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6af79b4ff34ee&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6af79b4ff34ee\" class=\"wp-block-image size-full has-lightbox wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"560\" height=\"2060\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/creativethemes.com\/blocksy\/wp-content\/uploads\/2024\/08\/Captura-de-ecran-din-2024-09-12-la-17.25.42.png\" alt=\"Product attribute controls for the Shop Filters block\" class=\"wp-image-11352\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">Controls available when filtering by product attribute.<\/figcaption><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<h3 class=\"wp-block-heading\">Filter By<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Select the WooCommerce product attribute that should be used for filtering, such as size, Color, material or another attribute configured for your products.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Display Type<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Display the available attribute values as a vertical <strong>List<\/strong> or an <strong>Inline<\/strong> arrangement that can wrap across multiple rows.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Multiple Selections<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Allow customers to select multiple values from the same product attribute when refining the product listing.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Show Search Box<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Display a search field for finding a specific attribute value when the filter contains many choices. The placeholder shown inside the search field can also be customised.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Show Checkboxes<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When multiple selections are available, display a checkbox alongside each attribute value to make its selected state more apparent.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Show Swatches<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When swatches are configured for the selected WooCommerce attribute, enable this option to display them inside the filter. Depending on the attribute configuration, these can provide a more visual representation of values such as Colors or other product options.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Show Label<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Choose whether the attribute value&#8217;s text label is displayed alongside its swatch. Disable the label when you want the filter to rely on the swatches themselves.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Show Counter<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Display the number of matching products alongside each attribute value. These counters update according to the current filtering context.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Show Tooltip<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Display the attribute value in a tooltip when visitors interact with a swatch. This is particularly useful when the text labels are hidden.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Exclude Product Attributes<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Exclude selected attribute values when they should not be presented as filtering choices.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Show Reset Button<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Display a reset control that clears selections made through the attribute filter and restores its initial state.<\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\">Combining Multiple Filters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can add multiple Shop Filters blocks to the same filtering area, with each block configured for a different taxonomy or product attribute. For example, a shop can provide separate filters for product categories, brands, sizes and Colors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The filters work together against the current WooCommerce product listing, allowing customers to progressively narrow the available products using several criteria.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also combine Shop Filters with Blocksy&#8217;s <strong>Filter by Price<\/strong>, <strong>Filter by Status<\/strong> and <strong>Active Filters<\/strong> blocks to build a more complete product-filtering interface.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Shop Filters block lets customers refine WooCommerce product listings using product categories, tags, brands, attributes and other supported taxonomies. It forms part of Blocksy&#8217;s Product Filters system and can be placed in supported widget areas, the Filters Canvas or other suitable block-based shop layouts. Blocksy Pro requiredThe Shop Filters block is part of the [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"doc_categories":[133],"class_list":["post-11219","documentation","type-documentation","status-publish","hentry","doc_categories-theme-blocks"],"acf":[],"_links":{"self":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/11219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation"}],"about":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/types\/documentation"}],"author":[{"embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/comments?post=11219"}],"version-history":[{"count":7,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/11219\/revisions"}],"predecessor-version":[{"id":15340,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/11219\/revisions\/15340"}],"wp:attachment":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/media?parent=11219"}],"wp:term":[{"taxonomy":"doc_categories","embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/doc_categories?post=11219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}