If you'd prefer for our support team to make these changes for you, please reach out to appsupport@pixelunion.net.
Advanced styling changes not included. Your designer can help with further customization if needed.
Setup works only in the current live theme. If you need to work with an Unpublished theme, please Publish, complete steps below, then Unpublish after testing.
1. Create "All" collection
If it doesn't already exist, create a collection named All. Choose Automatically select products based on conditions, with condition Product price is greater than -1
2. Review and Save App settings
In the app, click Settings button. Review, update as needed, and click Save (even if you didn't change anything).
Click Update product and collection tags button.
3. Include collection filter script
Go to Admin > Themes, hover over the 3 dots icon, and choose Edit HTML/CSS.
Go to Layouts folder and open theme.liquid file.
Before the </body> tag (scroll down at end of file), add
1
{%render'collection-filter-v2'%}
4. Add filters to collection pages
Go to Admin > Online Store > Themes, click on the 3 dots icon, and choose Edit HTML/CSS.
Go to Templates folder and open collection-template.liquid or collection.liquid file.
/* Your designer can adjust these to get all kind of looks:
one or separate lines, active links instead of checkboxes, colors etc. */.collection-filters-container{/*
*/text-align:center;margin:10px0px10px0px;font-size:16px;display:block;}.cf-title{display:inline-block;/* to have filters separated one per line, change "inline-block" to "block" */font-weight:bold;margin:0px5px0px24px;font-size:16px;/*
text-transform: uppercase;
margin: 20px 0px 0px 0px;
border-top: 1px solid #ddd;
border-bottom: 1px solid #ddd;
padding: 6px;
*/}.cf-options-container{/* optional, restrict height of available options to a scrollable container *//*
display: block;
max-height: 360px;
overflow: auto;
*/}.cf-select{display:inline-block;/* to have filters separated one per line, change "inline-block" to "block" */width:12em;margin-right:1em;float:none!important;height:40px;/*background: transparent url(https://cdn.shopify.com/s/files/1/0653/0119/t/1/assets/select.png) no-repeat right;*//*border-radius: 15px;*/padding:2px2px2px17px;/*color: #000;
background-color: #dedede;*/border:solid1px#d3d2d2;/*border: 0px solid;*//*box-shadow: none;*//*background-image: none;*//*-webkit-appearance: none;*//* vertical-align: middle;*//*
background-color: #000;
border-color: #000;
color: #ffffff;
padding: 0px;
margin-left: 4em;
*/}.cf-checkbox,.cf-radio{/*display: none !important;*/padding:0;/*margin: 0 !important;*/vertical-align:bottom;position:relative;top:-6px;}/* individual checkbox labels */.collection-filters-containerlabelspan{font-weight:normal;opacity:0.8;}.collection-filters-containerlabel{display:block;/* to have checkboxes on the same line, change "block" to "inline-block" */margin:0px6px6px0px;cursor:pointer;font-weight:normal;}/*
.collection-filters-container label {
margin: 0px;
padding: 10px 0px 10px 10px;
background-color: #fff;
}
.collection-filters-container label:nth-child(even) {
background: #fafafa;
}
*/.cf-checkbox:checked+span{font-weight:bold!important;opacity:1;/* color: #000000; */}.cf-radio:checked+span{font-weight:bold!important;opacity:1;/* color: #000000; */}.cf-mobile-only{display:none;}/* mobile */@media(max-width:760px){.cf-title{display:none;/* to have filters separated one per line, change "inline-block" to "block" */font-weight:bold;margin:2px5px0px0px;}.cf-select{display:block;/* to have filters separated one per line, change "inline-block" to "block" */width:100%;max-width:none;}.cf-desktop-only{display:none;}.cf-mobile-only{display:block;}}
6. (optional) Hide generated "cf-" tags from other tag lists
Where tags are listed, add this "unless" condition:
1
2
3
4
5
{%fortagincollection.all_tags%}{%unlesstagcontains'cf-'%}
<!-- initial for loop content goes here-->
{%endunless%}{%endfor%}