# Collection cards

<figure><img src="https://3026705042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAJrvmfqcj9TMoPkl3bNc%2Fuploads%2FKlUHQsjt86wyH2tkvOYK%2FHyper%20docs%20screenshot%20do%20not%20delete%20(42).jpg?alt=media&#x26;token=74e7846e-8cda-4a8d-965c-386f313807e7" alt=""><figcaption></figcaption></figure>

Showcase your product collections in an attractive, organized grid layout. This section is perfect for creating a "Shop by Category" area on your homepage or collection pages.

{% hint style="info" %}
The **Collection cards** section plays as visual cards, each featuring:

* Collection thumbnail image
* First 3 collection products
* Collection title
* Item count
* Shop button
  {% endhint %}

## How to add a Collection cards section to your Shopify store <a href="#how-to-add-a-banner-with-hotspots-section-to-your-shopify-store" id="how-to-add-a-banner-with-hotspots-section-to-your-shopify-store"></a>

{% hint style="success" %}
Steps:

1. In the theme editor **(Customize)**, click **Add section.**
2. Locate **Collection cards** section.
3. Make necessary changes.
4. **Save.**
   {% endhint %}

## How to edit a Collection cards section

### Section settings

#### General

* **Color scheme**: Choose a theme color preset. [Learn more →](https://docs.foxecom.com/hyper-theme/theme-settings/colors)

#### Section header

<details>

<summary>See settings</summary>

* **Text alignment:**
  * Align the text in the section to the **Left**, **Center**, or **Right**.
  * Adjust alignment based on your banner’s design and layout.
* **Text alignment on mobile:** Override desktop alignment settings specifically for mobile devices if needed.
* **Subheading**: Add a short, secondary heading to complement the main heading. This can provide additional context or detail.
* **Heading**: Enter the primary title for your banner.
* **Heading size:** Adjust the size to fit your design preference and ensure readability. Choose from available heading sizes.

:writing\_hand: [add-highlighted-text-to-your-headings](https://docs.foxecom.com/hyper-theme/faqs/add-highlighted-text-to-your-headings "mention")

* **Text:** Add a detailed explanation or summary for the banner. Use rich text formatting like **bold**, *italic*, links, and lists for better visual emphasis.
* **Description size:** Select the size of the description text.

</details>

#### Layout setting

* **Number of column on desktop**: Set how many collection cards display per row on desktop.
* **Column gap** and **Row gap**: Control spacing between cards and rows separately.

<figure><img src="https://3026705042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAJrvmfqcj9TMoPkl3bNc%2Fuploads%2FPIdGh5OQPULhZGV4u7mZ%2Fimage.png?alt=media&#x26;token=0475a8a0-13e1-497a-aea4-93ec06dd3aa3" alt=""><figcaption></figcaption></figure>

#### Carousel setting

* **Enable carousel on desktop:** Allow horizontal swiping through collections when **the number of collections exceeds the number of column on desktop**.&#x20;

<figure><img src="https://3026705042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAJrvmfqcj9TMoPkl3bNc%2Fuploads%2Fp2XQIuoxnfOdPutpYHtz%2Fimage.png?alt=media&#x26;token=5d0d2c56-1c12-4317-aeff-d0c43ae1498e" alt=""><figcaption></figcaption></figure>

#### Mobile layout

* Set the **number of columns on mobile** as **1** column/ **2** columns.
* **Enable swipe on mobile** to swipe through the collections on mobile.

<figure><img src="https://3026705042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAJrvmfqcj9TMoPkl3bNc%2Fuploads%2FqaGcCJWmQA4lVNWU8XM3%2Fimage.png?alt=media&#x26;token=25df0739-88a9-4262-a9b2-7f88ab3a5b29" alt=""><figcaption></figcaption></figure>

#### Card settings

* **Color scheme**: Select a pre-defined set of colors used for the collection cards of the section.

[Learn more](https://docs.foxecom.com/hyper-theme/theme-settings/colors)

* **Image ratio**: Set the aspect ratio for collection images (both the collection's featured images and product images).
* Show product count: Toggle on to display the number of items in each collection under the collection title.

{% hint style="info" %}
:bulb: **Tip**: Product counts help customers understand the size of each collection and can influence their browsing decisions.
{% endhint %}

### Block settings - Collection setup

{% hint style="success" %}
Each block includes

1. Option to **select a collection** you want to feature.
2. Upload a **custom featured image** for the collection.&#x20;
   {% endhint %}

<figure><img src="https://3026705042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAJrvmfqcj9TMoPkl3bNc%2Fuploads%2FdURxWk5uy0dJPBf60qxJ%2Fimage.png?alt=media&#x26;token=c42a639a-52f6-49d8-8605-c18fef5d8122" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
Leave blank to show the collection's **featured image.**
{% endhint %}

<figure><img src="https://3026705042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAJrvmfqcj9TMoPkl3bNc%2Fuploads%2Fn09Tes5aU713jwaTAUi3%2Fimage.png?alt=media&#x26;token=67452ca0-bddc-4b9c-8394-f908b6affd79" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3026705042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAJrvmfqcj9TMoPkl3bNc%2Fuploads%2Fyo7fOsp9W67bljLcTds0%2Fimage.png?alt=media&#x26;token=55f0a002-7b52-4697-b641-6cc82faf405a" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
or if that collection doesn't have a featured image, the card will take the **first product's image**.

![](https://3026705042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAJrvmfqcj9TMoPkl3bNc%2Fuploads%2F2egKzE2r80SUbBIQBz7H%2Fimage.png?alt=media\&token=8f7bf72f-48ec-456b-a695-36289e45911c)\
![](https://3026705042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAJrvmfqcj9TMoPkl3bNc%2Fuploads%2FiruTZnsLMVNfFqjpIJ6n%2Fimage.png?alt=media\&token=f7839fe3-d1be-48ee-8b09-ac150a7e46f9)
{% endhint %}

{% hint style="success" %}
Give the collection a custom title or leave it blank to use the default name.

![](https://3026705042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAJrvmfqcj9TMoPkl3bNc%2Fuploads%2FdHPwqefKKo5Nxcju1pff%2Fimage.png?alt=media\&token=29f764ed-e562-44dc-94d2-8b04c571e47d)
{% endhint %}

#### Custom thumbnail images :fire:

{% hint style="info" %}
By default, the collection card displays **first 3 products** of each collection as thumbnail previews.
{% endhint %}

However, if you want **more control** over which images appear as thumbnails, you can **set custom thumbnail images** using **metafields**.

This is especially helpful when:

* Your first 3 products don’t reflect the collection well.
* You want to highlight bestsellers or curated visuals.

{% stepper %}
{% step %}

### Create a metafield definition

1. From your Shopify admin, go to **Settings > Metafields and metaobjects > Collections.**
2. Click **Add definition**.
3. Use the following details:

   * **Name**: Collection thumbnails (or any name you like)
   * **Namespace and key**: `foxtheme.collection-thumbnails`
   * **Content type**: **File** → **Accepts: List of images**

   <figure><img src="https://3026705042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAJrvmfqcj9TMoPkl3bNc%2Fuploads%2FAAFl55ISkjcfD88mS9aV%2Fimage.png?alt=media&#x26;token=e524c968-cce1-46ae-a162-039d35f5921e" alt=""><figcaption></figcaption></figure>
4. Save the definition.

{% endstep %}

{% step %}

### Add images to collection

1. Go to **Products > Collections**.
2. Click on the collection you want to edit.
3. Scroll down to the **Metafields** section.
4. Upload 1–3 images to the metafield you just created.

<figure><img src="https://3026705042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAJrvmfqcj9TMoPkl3bNc%2Fuploads%2FhgBpkDiGoUnIQXlXX54K%2Fimage.png?alt=media&#x26;token=4bfb3ae4-cec6-41c7-acea-f84faf3127a1" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### View on the theme editor

1. Open your **theme editor** (Online Store > Themes > Customize).
2. Navigate to the **Collection cards** section.
3. You’ll see the new thumbnail images appear on the right side of the collection card.

> 🎯 If the metafield is empty, the section will fall back to using the first 3 products in the collection.

<figure><img src="https://3026705042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAJrvmfqcj9TMoPkl3bNc%2Fuploads%2FDz8lF9qkto4QAnLTS2PF%2Fimage.png?alt=media&#x26;token=4f51009d-ce2b-4a59-b6f8-9fc10659bc35" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

***

<figure><img src="https://3026705042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAJrvmfqcj9TMoPkl3bNc%2Fuploads%2FkUIzEsJKOeRiz891zyf5%2Flivechat883x471%20(1).png?alt=media&#x26;token=90cbed2c-e791-49c8-9f43-49a08bed6f1f" alt=""><figcaption><p><a href="https://apps.shopify.com/xflow?utm_source=foxecom&#x26;utm_medium=help_center_hyper&#x26;utm_campaign=banner">Install XFlow Back In Stock Automation FREE</a></p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.foxecom.com/hyper-theme/theme-sections/collection-cards.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
