# Collapsible tabs

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

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

This comes in handy when you want to show important notice or information without taking up too much space.

## 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. Select **Collapsible tabs.**
3. Make necessary changes.
4. **Save** the setting&#x73;**.**
   {% endhint %}

## How to edit a Collapsible tabs section

### Section settings

#### Section header

<details>

<summary>See settings</summary>

* **Layout:** Set how the blocks show in the section as [Vertical](#vertical)/[Standing column](#standing-column).
* **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.
* **Description:** 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.
* **Button label:** Input the text for the call-to-action button.
* **Button link:** Add a link to the button to direct users to a specific page, product, or collection.
* **Button style:** Choose a style for the button.
* **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.

</details>

{% tabs %}
{% tab title="Vertical" %}

<figure><img src="/files/AzyHdSVLZx4I2VBabK5e" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Standing column" %}

<figure><img src="/files/ZsTuweNR7FFiaTIaHpLD" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

#### Image card settings

Control the suitable spacing between the blocks by selecting **Column gap** and **Row gap** options.

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

#### Collapsible tab settings

**Style**: Choose between **Standard** or **Card** layout.

{% tabs %}
{% tab title="Standard" %}

<figure><img src="/files/yer0GOFYvshcL3aqcmpX" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Card" %}

<figure><img src="/files/ECvPotCFfdi9cVC0KRAA" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

### Block settings

You can add more blocks to the collapsible tabs ([Collapsible tab](#collapsible-tab)/ [Heading](#heading)/ Image card).

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

#### Heading

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

Add a **Heading** and **Subheading** to your section.

{% hint style="info" %}
Pro tip :star:: Ensure the heading communicates the purpose of the section in just a few words.
{% endhint %}

#### Collapsible tab

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

* **Icon**: Add a visual cue next to the tab heading for better clarity or emphasis.

{% hint style="info" %}
Pro tip :star:: Choose an icon relevant to the content (e.g., a question mark for FAQs or a delivery truck for shipping information).
{% endhint %}

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

* **Heading:** Enter a clear and concise title for the tab in the Heading field.
* **Tab content**: Enter text, links, or formatted content into the Tab Content editor. Use the formatting options (e.g., bold, italic, lists) to structure the content for readability.
* **Custom liquid:** For advanced customization, add Liquid code to display dynamic content.

{% hint style="warning" %}
This option is best suited for developers or advanced users familiar with Shopify Liquid.
{% endhint %}

* **Tab content from page**: Dynamically populate the tab content by linking it to a specific Shopify page.
* **Default open**: Toggle Default Open to make the tab open when the page loads.

{% hint style="info" %}
Pro tip :star:: Use this feature sparingly to avoid overwhelming customers with too much open content.
{% endhint %}

* **Use subtext color**: Apply a subtext color to the tab content to match your theme’s style.

#### Image card

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

Select an image to display next to your Collapsible tabs content.&#x20;

{% hint style="info" %}
You can add only 1 Custom card block per Collapsible tabs section.
{% endhint %}

You can choose whether the image appears on the **Left** or **Right** side of the Collapsible tabs content.

<figure><img src="/files/w0U4B2aPjXqaOgRqfzaq" alt=""><figcaption><p>An example of image on the right for Standing column layout</p></figcaption></figure>

***

<figure><img src="/files/6RW1JWuKNf9ovVFLkLXc" 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/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.
