@Kjankko-US ,
Yep, this is possible. First, navigate to the Shopify online code editor. If you haven’t done this before, check out this link:
https://shopify.dev/tutorials/develop-theme-getting-started-choosing-an-editor
Here, you want to modify 2 files:
- collection-list.liquid (found in the Sections folder)
- collection-grid-item.liquid (found in the Snippets folder)
NOTE: Before editing your theme code, it’s important to save a backup of your theme.
collection-list.liquid
Change line 24 from this:
{% include 'collection-grid-item', collection: collection %}
… to this:
{% include 'collection-grid-item', collection: collection, collection_url: block.settings.collection_url %}
… and change line 182 from this:
},
… to this:
},
{
"id": "collection_url",
"type": "url",
"label": {
"da": "Link",
"de": "Link",
"en": "Link",
"es": "Enlace",
"fi": "Linkki",
"fr": "Lien",
"hi": "लिंक",
"it": "Link",
"ja": "リンク",
"ko": "링크",
"nb": "Kobling",
"nl": "Link",
"pt-BR": "Link",
"pt-PT": "Ligação",
"sv": "Länk",
"th": "ลิงก์",
"zh-CN": "链接",
"zh-TW": "連結"
}
}
collection-grid-item.liquid
Change line 19 from this:
… to this:
Following these changes, you will have an additional option in your theme customizer to set the URL that is linked to. If no URL is set, the default behaviour of the Collection list section will apply.
I hope this helps.