{"id":766,"date":"2021-02-04T12:17:47","date_gmt":"2021-02-04T12:17:47","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=766"},"modified":"2024-04-12T09:03:00","modified_gmt":"2024-04-12T09:03:00","slug":"making-jetsmartfilters-expandable","status":"publish","type":"tips-and-tricks","link":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/making-jetsmartfilters-expandable\/","title":{"rendered":"Making JetSmartFilters Expandable and Vice Versa"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"using-accordion-widget\">Using Accordion Widget<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\"><div class=\"wp-block-group__inner-container\">\n<p class=\"offset\"><strong>Classic Accordion<\/strong> is a <a href=\"https:\/\/crocoblock.com\/plugins\/jettabs\/\" target=\"_blank\" rel=\"noreferrer noopener\">JetTabs<\/a> widget that lets you display the website content compactly. In addition to text sections, you can also put smart filters into this widget.&nbsp;<\/p>\n\n\n\n<p class=\"offset\">Learn more about the<strong> Accordion widget<\/strong> in the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jettabs\/jettabs-accordion-widget-how-to-display-content-in-the-form-of-a-compact-accordion\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to display content in the form of a compact accordion<\/a> tutorial. Please stick to the steps you find there.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"use-the-html-code\">Use the HTML Code<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\"><div class=\"wp-block-group__inner-container\"><div class=\"note-banner d-flex border-bold border-jetsmartfilters rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z\" fill=\"#FA5450\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Warning<\/div><p class=\"m-0\">Before proceeding with the tutorial\u2032s steps, create a backup or replicate the actions on the staging site. The backup ensures the website restoration if an error occurs. To learn more, proceed to the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/how-to-backup-restore-wordpress-website\/\">How to Backup and Restore a WordPress Website with a Plugin<\/a> article.<\/p><\/div><\/div>\n\n\n\n<p class=\"offset\">Add the HTML element block to the page where you want to expand\/collapse smart filters. Then paste the following code into it:<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/Crocoblock\/f5e383ce341e94904959b83c329497aa.js\"><\/script>\n\n\n\n<p class=\"offset\">Please note that you can modify the line \u201ccontent: &#8220;\u02c5&#8221;;\u201d in case you want the arrow icon to point up.&nbsp;<\/p>\n\n\n<div class=\"note-banner d-flex border-bold border-jetthemecore rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M9 21C9 21.5 9.4 22 10 22H14C14.6 22 15 21.5 15 21V20H9V21ZM12 2C8.1 2 5 5.1 5 9C5 11.4 6.2 13.5 8 14.7V17C8 17.5 8.4 18 9 18H15C15.6 18 16 17.5 16 17V14.7C17.8 13.4 19 11.3 19 9C19 5.1 15.9 2 12 2Z\" fill=\"#F2D23C\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Things to know<\/div><p class=\"m-0\">At the stage of styling in Elementor, make sure the <b>Show filter label<\/b> toggle is enabled. Otherwise, the filters will be expanded just once, and there is no way they can be collapsed.<\/p><\/div><\/div>\n<\/div><\/div>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/09\/show-filter-label.png\" alt=\"show filter label\">\n\n\n\n<p class=\"offset\">To get more details, follow this <a href=\"https:\/\/element.how\/crocoblock-jetsmartfilters-toggle\/?fbclid=IwAR2t6o9LtJ9oJDkKGaihhezIXTuAeT4OeBxQRuyetrazWo9vb2CKDgRvuII\" target=\"_blank\" rel=\"noreferrer noopener\">How To Make A JetSmartFilters Toggle Easily guide<\/a>. <br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Follow these two-step-tutorial to learn how to collapse or expand filters to make them look more compact. <\/p>\n","protected":false},"author":11,"featured_media":0,"template":"","format":"standard","tipstricks-tags":[360,380],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Easy Way to Make JetSmartFilters Expand and Collapse | Troubleshooting<\/title>\n<meta name=\"description\" content=\"Follow this troubleshooting article and learn two ways to add smart filters to a toggle so they can be expanded and collapsed.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/making-jetsmartfilters-expandable\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Easy Way to Make JetSmartFilters Expand and Collapse | Troubleshooting\" \/>\n<meta property=\"og:description\" content=\"Follow this troubleshooting article and learn two ways to add smart filters to a toggle so they can be expanded and collapsed.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/making-jetsmartfilters-expandable\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-12T09:03:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/09\/show-filter-label.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/making-jetsmartfilters-expandable\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/making-jetsmartfilters-expandable\/\",\"name\":\"Easy Way to Make JetSmartFilters Expand and Collapse | Troubleshooting\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2021-02-04T12:17:47+00:00\",\"dateModified\":\"2024-04-12T09:03:00+00:00\",\"description\":\"Follow this troubleshooting article and learn two ways to add smart filters to a toggle so they can be expanded and collapsed.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/making-jetsmartfilters-expandable\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/making-jetsmartfilters-expandable\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/making-jetsmartfilters-expandable\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tips & tricks\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Making JetSmartFilters Expandable and Vice Versa\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"name\":\"Help Center\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\",\"name\":\"Help Center\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"contentUrl\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"caption\":\"Help Center\"},\"image\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Easy Way to Make JetSmartFilters Expand and Collapse | Troubleshooting","description":"Follow this troubleshooting article and learn two ways to add smart filters to a toggle so they can be expanded and collapsed.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/making-jetsmartfilters-expandable\/","og_locale":"en_US","og_type":"article","og_title":"Easy Way to Make JetSmartFilters Expand and Collapse | Troubleshooting","og_description":"Follow this troubleshooting article and learn two ways to add smart filters to a toggle so they can be expanded and collapsed.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/making-jetsmartfilters-expandable\/","og_site_name":"Help Center","article_modified_time":"2024-04-12T09:03:00+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/09\/show-filter-label.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/making-jetsmartfilters-expandable\/","url":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/making-jetsmartfilters-expandable\/","name":"Easy Way to Make JetSmartFilters Expand and Collapse | Troubleshooting","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2021-02-04T12:17:47+00:00","dateModified":"2024-04-12T09:03:00+00:00","description":"Follow this troubleshooting article and learn two ways to add smart filters to a toggle so they can be expanded and collapsed.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/making-jetsmartfilters-expandable\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/making-jetsmartfilters-expandable\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/making-jetsmartfilters-expandable\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crocoblock.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Tips & tricks","item":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/"},{"@type":"ListItem","position":3,"name":"Making JetSmartFilters Expandable and Vice Versa"}]},{"@type":"WebSite","@id":"https:\/\/crocoblock.com\/knowledge-base\/#website","url":"https:\/\/crocoblock.com\/knowledge-base\/","name":"Help Center","description":"","publisher":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization","name":"Help Center","url":"https:\/\/crocoblock.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","contentUrl":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","caption":"Help Center"},"image":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/tips-and-tricks\/766"}],"collection":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/tips-and-tricks"}],"about":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/types\/tips-and-tricks"}],"author":[{"embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/users\/11"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=766"}],"wp:term":[{"taxonomy":"tipstricks-tags","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/tipstricks-tags?post=766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}