# Collapsible tabs

<figure><img src="https://1836495117-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOdebKCa6IK9qfbdvSKj0%2Fuploads%2FvcqS4Ukvv95zGnwOvKIm%2FFox-BG%20Light%20(21).jpg?alt=media&#x26;token=6f6169ef-4329-4c99-95bf-dba38076b06e" alt=""><figcaption></figcaption></figure>

**Collapsible tabs** help break up longer descriptions and make them more visually appealing.&#x20;

Ideal for customer service or support pages, this section helps present information in an organized and expandable format — with optional image cards and headings for extra context.

## How to add a Collapsible tabs section to your Shopify store

{% hint style="success" %}
Steps

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

## How to edit a Collapsible tabs section

### Section settings

#### Section header

<table><thead><tr><th width="240">Setting</th><th>Description</th></tr></thead><tbody><tr><td><strong>Desktop padding bottom</strong></td><td>Add spacing below the section (Small / Medium / Large).</td></tr><tr><td><strong>Content spacing</strong></td><td>Adjust the gap between blocks within the section.</td></tr><tr><td><strong>Heading</strong></td><td>Enter a main title of the section.<br><span data-gb-custom-inline data-tag="emoji" data-code="270d">✍️</span> <em>Want to add highlighted text to the heading? Learn more:</em> <a data-mention href="../../pages-global-sections/general-settings#highlight-text">#highlight-text</a></td></tr><tr><td><strong>Heading size</strong></td><td>Controls heading scale — Base, Large, XL, etc.</td></tr><tr><td><strong>Heading color</strong></td><td>Choose a custom text color or leave blank for default.</td></tr><tr><td><strong>Subheading</strong></td><td>Optional subtitle displayed below the heading.</td></tr><tr><td><strong>Description</strong></td><td>Add body text, such as contact hours or additional guidance.</td></tr></tbody></table>

#### Collapsible tab

<table><thead><tr><th width="240">Setting</th><th>Description</th></tr></thead><tbody><tr><td><strong>Font family</strong></td><td>Choose to use headings font or body font to the collapsible tabs' titles.<br><span data-gb-custom-inline data-tag="emoji" data-code="270d">✍️</span> <em>Set fonts in the Theme settings ></em><a data-mention href="../theme-settings/typography">typography</a></td></tr><tr><td><strong>Heading size</strong></td><td>Size of the heading text.</td></tr><tr><td><strong>Column gap</strong></td><td>Adjust the gap between the Image card and Collapsible tabs.</td></tr><tr><td><strong>Content width</strong></td><td>Control the width of the content (Narrow width/ Full width).</td></tr></tbody></table>

### Block settings

You can add the following blocks within the **Collapsible tabs** section:

{% tabs %}
{% tab title="🔹 Heading (optional)" %}
Used for adding an internal title above tabs.

<table><thead><tr><th width="175">Setting</th><th>Description</th></tr></thead><tbody><tr><td><strong>Text</strong></td><td>The heading content.</td></tr><tr><td><strong>Heading size</strong></td><td>Size of the heading text.</td></tr><tr><td><strong>Heading color</strong></td><td>Optional custom color.</td></tr></tbody></table>

<figure><img src="https://1836495117-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOdebKCa6IK9qfbdvSKj0%2Fuploads%2F2VPI2WHktmijFTaehedz%2Fimage.png?alt=media&#x26;token=4ba21ca8-2d8b-4d0d-9911-2a553af50605" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="🖼 Image card (optional)" %}
Great for showing support info or a contact CTA alongside the tabs.

<figure><img src="https://1836495117-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOdebKCa6IK9qfbdvSKj0%2Fuploads%2Fe6gZa7GvIMsGOKWj5ykz%2Fimage.png?alt=media&#x26;token=24964761-c292-485d-8c57-652a4dfc6d75" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="220">Setting</th><th>Description</th></tr></thead><tbody><tr><td><strong>Image</strong></td><td>Upload or select from free images.</td></tr><tr><td><strong>Desktop image position</strong></td><td>Left / Right of collapsible tabs.</td></tr><tr><td><strong>Desktop image width</strong></td><td>Adjust image size (e.g., 33%).</td></tr><tr><td><strong>Vertical alignment</strong></td><td>Align image Top/ Middle/ Bottom.</td></tr><tr><td><strong>Layout</strong></td><td>Choose from card design presets.</td></tr><tr><td><strong>Image overlay opacity</strong></td><td>Set overlay transparency.</td></tr><tr><td><strong>Text color</strong></td><td>Change color of the text over image.</td></tr><tr><td><strong>Heading / Description</strong></td><td>Add text and a message.</td></tr><tr><td><strong>Button label &#x26; link</strong></td><td>Add a CTA like "Contact us".</td></tr><tr><td><strong>Button style</strong></td><td>Choose between white, outline, solid, etc.</td></tr></tbody></table>
{% endtab %}

{% tab title="📑 Collapsible tab" %}
Each block becomes a toggleable question with expandable content.

<table><thead><tr><th width="236">Setting</th><th>Description</th></tr></thead><tbody><tr><td><strong>Icon</strong></td><td>Add an optional icon to the tab.</td></tr><tr><td><strong>Heading</strong></td><td>Displayed as the tab title (e.g. a question).</td></tr><tr><td><strong>Collapsible tab content</strong></td><td>Rich text editor for the answer. Supports bold, links, etc.</td></tr><tr><td><strong>Tab content from page</strong></td><td>Pull tab content from an existing Shopify page.</td></tr><tr><td><strong>Default open</strong></td><td>Optionally set a tab to be expanded by default.</td></tr></tbody></table>

<figure><img src="https://1836495117-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOdebKCa6IK9qfbdvSKj0%2Fuploads%2FNayArMpmH3mk239sI6eF%2Fimage.png?alt=media&#x26;token=a7c6434d-6a03-40dd-bbc2-319377cc493a" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

## Best practices

* Use short, clear headings for each collapsible tab.
* Enable “Default open” on the most common question.
* Add an image card with contact details or a CTA to guide users.


---

# 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/zest-theme/theme-sections/collapsible-tabs.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.
