On collection page, fetch all the collections. If your current collection handle is t-shirt and your sub collection handle is linen-t-shirt. Check for all the collections which contains current collection handle, then show the details.

{% assign currentCol = collection.handle %}
    {% for collection in collections %}
      {% if collection.handle contains currentCol %}
         {{ collection.title }}
         // further code 
      {% endif %}
    {% endfor %}
Answer from Ruchi on Stack Overflow
🌐
Shopify
shopify.github.io › liquid-code-examples › example › collection-list
Collection list | Shopify Liquid code examples
A collection list is a page that displays all the collections in a store. In this example, the collection name will be displayed, as well as a featured image for the collection, if one has been uploaded.
🌐
Shogun
getshogun.com › learn › shopify-collection-list-template-liquid
Common Shopify Collection List Template Edits using Liquid
October 10, 2024 - You’ll need to add two files, actually: the JSON template for the collection list page and the Liquid file for the section that this template references. First, open the “templates” folder in the Shopify code editor and select “Add a new template”. Name this file “list-collections.json” and add the following code:
🌐
Shopify
shopify.dev › docs › storefronts › themes › architecture › templates › list-collections
list-collections
Learn about the list-collection template, which lists all of the collections in the store on a single page.
🌐
Shopify
shopify.github.io › liquid-code-examples › example › collection-page
Collection page | Shopify Liquid code examples
The collection page lists the products within a collection. This example includes product images with product titles, prices, and vendors, as well as a collection title and description for the collection as a whole.
Find elsewhere
🌐
Shopify
shopify.dev › docs › api › liquid › objects › collections
Liquid objects: collections
Liquid · Copy page MD · All of the collections on a store. Access · Global · Anchor to Iterate over the collections · You can iterate over collections to build a collection list. Code · Reset Code · 9 · 1 · 2 ·
🌐
GitHub
gist.github.com › jtwray › 9916420a950a0db2b025d8a738763484
Shopify Liquid Cheatsheet · GitHub
Shopify Liquid Cheatsheet. GitHub Gist: instantly share code, notes, and snippets.
🌐
Shopify Community
community.shopify.com › store design
Access to Collection List page header value in Liquid
May 28, 2024 - Hi all, The Collection List page has a header that you can set in the theme editor. I’m looking for a way to use that value elsewhere. In the code for the main-list-collections.liquid file, the variable used to call this value is section.settings.title… # {{ section.settings.title }} …but I can’t access this variable elsewhere.
🌐
Avada
avada.io › home › shopify › shopify devdocs › customize your list-collections.liquid template
How to customize your list-collections.liquid template in Shopify
February 24, 2025 - In this guide, we’ll walk you through the steps to easily customize your list-collections.liquid template, helping you enhance your store’s design and improve your customers’ shopping experience. ... Editing the code for your collections list page can help the page shows only the collections that you have included in the All collections menu.
🌐
Stack Overflow
stackoverflow.com › questions › 69372862 › shopify-extract-collection-information
liquid - Shopify - extract collection information - Stack Overflow
<script> console.log({{ collection | json }}); </script> To check the json object use the javascript console in the Chrome devTools (F12) -> console. The liquid variable collection after the assignment will reference the corresponding collection object so you need to modify the way you access the fields, say for example you want to output the collection title, you can do: <span>{{ collection.title }}</span>.
🌐
GitHub
github.com › Shopify › dawn › blob › main › sections › main-list-collections.liquid
dawn/sections/main-list-collections.liquid at main · Shopify/dawn
class="collection-list grid grid--{{ section.settings.columns_desktop }}-col-desktop grid--{{ section.settings.columns_mobile }}-col-tablet-down"
Author   Shopify
🌐
Markdunkley
cheat.markdunkley.com
Shopify Cheat Sheet - Liquid variables
Returns the variant object if passed in through the url (ex: ?variant=123 would return "123"). ... Returns the variant objet if there is a ?variant= url parameter. If there is no param the first variant with inventory will be selected. ... Returns a list of collections a product is listed in.
🌐
Entaice
entaice.com › blog › shopify-liquid-collection-list
Mastering Shopify Liquid for Dynamic Collection Lists | Entaice
March 15, 2023 - This is where you’d use Liquid to tap into your collections. Shopify stores the collections in a variable that you can access using something like {% for collection in collections %}. This loop will go through each collection you have.
🌐
Shopify
shopify.com › partners › shopify-cheat-sheet
Shopify Cheat Sheet — A resource for building Shopify Themes with Liquid
Returns the URL of the collection. Learn more ... Allows you to access all of the collections on a store. Learn more ... You can iterate over collections to build a collection list...
🌐
GitHub
gist.github.com › svaustin66 › 21bc97c9638e29c8f84d499063a2a47c
This liquid code will list all of the products in a store with links to the product admin page and show all product photos under each product · GitHub
This liquid code will list all of the products in a store with links to the product admin page and show all product photos under each product - Shopify - All Product Photos
🌐
Shopify
shopify.dev › docs › storefronts › themes › architecture › templates › collection
collection
The collection template renders the collection page, which lists all products within a collection. ... Refer to the collection template, its banner section, and its product grid section in Dawn for an example implementation. The collection template is located in the templates directory of the theme: ... You should include the collection object in your collection template or a section inside of the template. You can access the Liquid collection object to display the collection details.