> For the complete documentation index, see [llms.txt](https://sitar-doc.winterinfotech.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sitar-doc.winterinfotech.com/collection-filter-color-swatch-from-metaobject.md).

# Collection filter color swatch from metaobject

{% embed url="<https://salesiq.zohopublic.in/signaturesupport.ls?widgetcode=siq93f38201da244cbe219b2cab71813c85342abc57dd769c6885e2bde57d2b90da>" %}

#### To display the color swatch using the metaobject in the collection filter, follow the steps below

* From your Shopify admin, go to **Settings** > **Custom data.**

<figure><img src="/files/eH4o8n8fUImrVonFSVlI" alt=""><figcaption></figcaption></figure>

* Click on "**Add definition**".

<figure><img src="/files/zTQhg61hw6TntOyMa3dM" alt=""><figcaption></figcaption></figure>

* Add the desired name if needed and Add field.

<figure><img src="/files/7funoTlmo49ZlBqBBPKq" alt=""><figcaption></figcaption></figure>

* Select **File** type.

<figure><img src="/files/w4BdYEj6fFRfOOOY1YWd" alt=""><figcaption></figcaption></figure>

* Add the desired name if needed and Accept all file types, then click on **Add** button.

<figure><img src="/files/b30QwC1jRatYYZjYd17z" alt=""><figcaption></figcaption></figure>

* To add a second field, click on '**Add Field**' again.

<figure><img src="/files/8Ja7DRhPhkNbgKsI5bka" alt=""><figcaption></figcaption></figure>

* Click on "Single line text".

<figure><img src="/files/qQTgnJLZVwiS9s8c3tIz" alt=""><figcaption></figcaption></figure>

* Add the desired name if needed and click on "Use as filter in metaobject index", then click on **Add** button.

<figure><img src="/files/5Opcu3GxagePYnhR3x8J" alt=""><figcaption></figcaption></figure>

* The metaobject fields you created will be displayed. Then click 'Save'.

<figure><img src="/files/38WvvbL4GFdLvu7PSMwz" alt=""><figcaption></figcaption></figure>

* From your Shopify admin, go to **Settings** > **Custom data > Products.**

<figure><img src="/files/61rQcJ3ehgEIFN3g5luZ" alt=""><figcaption></figcaption></figure>

* Click on "**Add definition**".

<figure><img src="/files/0NNv3dMlpdAmw5OJrFbn" alt=""><figcaption></figcaption></figure>

* Add the desired name if needed. The name you add here will be displayed in the collection page filter. then click on Select type.

<figure><img src="/files/wsARCYJHtdUEpFaAnV2m" alt=""><figcaption></figcaption></figure>

* Click on "**Metaobject**".

<figure><img src="/files/zwBWZmX8FJIxkUBCLmxs" alt=""><figcaption></figcaption></figure>

* Select the "**Reference**".

<figure><img src="/files/bAbQDqpfKVcTzq8fAGkm" alt=""><figcaption></figcaption></figure>

* Click on created metaobject, then select the "List of entries" and **Save**.

<figure><img src="/files/luP8LoYjizg2BPcYxwD2" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/zKzU9tTittQVbHeBxSBK" alt=""><figcaption></figcaption></figure>

* From your Shopify admin, go to **Content > Metaobjects.**

<figure><img src="/files/Wo2hYW6RWuuuGoldXLkz" alt=""><figcaption></figcaption></figure>

* Click on "Add entry".

<figure><img src="/files/m0U8moNJlWMSXqqJMqhg" alt=""><figcaption></figcaption></figure>

* Select the image you want to display in the color swatch filter and add a label, Then Save.

<figure><img src="/files/jV2UEmoKP2uUcPFj5nKK" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/9Xdhc5mihc0MbPfQB2mV" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/LjdcIrpGkV3L0dTL13bA" alt=""><figcaption></figcaption></figure>

* Install the "**Search & Discovery**" app and open it.

<figure><img src="/files/9SZLLPyO5lzCWxzPdSGL" alt=""><figcaption></figcaption></figure>

* Click on "Filters" and Add filter.

<figure><img src="/files/wn3ThV0cNx1AM6MSXtTS" alt=""><figcaption></figcaption></figure>

* Select the source.

<figure><img src="/files/VFe1h6dCjRGkFfiL1fCi" alt=""><figcaption></figcaption></figure>

* Select the metafield for the name that you created in the product here and Save.

<figure><img src="/files/tP9t9azMV7bfYyfQ3jcK" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/ZVotFyYuH7iJeuAluAyZ" alt=""><figcaption></figcaption></figure>

* From your Shopify admin, go to **Products** and select any one product.

<figure><img src="/files/FlXk31HovyxPdcVpZjDf" alt=""><figcaption></figcaption></figure>

* Select the entry you added in the metaobject under the content section here and Save.

<figure><img src="/files/NFkIA5PMiej2moxsDLAM" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/HJjQNkNc70KpKNh98EKi" alt=""><figcaption></figcaption></figure>

* The color swatches created from the metaobject will be displayed within the filter on the collection page.

<figure><img src="/files/4Qi3L90ebjtvDiCn9LB4" alt=""><figcaption></figcaption></figure>
