> For the complete documentation index, see [llms.txt](https://help.fluorescent.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.fluorescent.co/stiletto/product-pages/product-page-blocks/collapsible-rows-block.md).

# Collapsible rows block

**Collapsible row blocks** reveal additional text when opened. Use these blocks to organize product details and extra information.

{% hint style="info" %}
For a similar feature, check out the [Collapsible row list section](/stiletto/sections/theme-sections/collapsible-row-list.md) that you can add to any page/
{% endhint %}

***

{% columns %}
{% column width="41.66666666666667%" %}

### Set up block

Under **Product overview**, click **(+) Add block** and select **Collapsible row**. Use the drag handles **`⋮⋮`** to re-order blocks.

Click the block to select the layout and position.

{% hint style="info" %}
Editing templates change all pages that use that template. For unique pages, [use new templates](/stiletto/general/editing-themes/using-templates.md#create-and-assign-multiple-templates) or [dynamic metafields](/stiletto/general/adapting-your-theme/dynamic-content-with-metafields.md)
{% endhint %}
{% endcolumn %}

{% column width="58.33333333333333%" %}

#### <mark style="color:$info;">Block layout</mark>

<sub><mark style="color:$info;">Click the block to find layout settings.<mark style="color:$info;"></sub>

<table data-view="cards"><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><mark style="color:$primary;">Column</mark></td><td>Display the block in the <strong>left</strong> or <strong>right</strong> column of the product overview.</td></tr><tr><td><mark style="color:$primary;">Expand by default</mark></td><td>Choose to show the row opened when page loads.</td></tr></tbody></table>
{% endcolumn %}
{% endcolumns %}

***

### <mark style="color:$primary;">Add row content</mark>

Under **Product overview**, click **(+) Add block** and select **Collapsible row**. Use the drag-and-drop handles **`⋮⋮`** to re-order blocks. Click a row block to start adding content.

You can display row blocks in the product overview's left or right column. You can also insert content from a page created in your Shopify admin.

<details>

<summary><mark style="color:blue;"><strong>STEPS</strong></mark></summary>

In your theme editor (**Customize**):

1. Under **Product overview**, click **(+) Add block** and select **Collapsible row**.
2. Click on the new **Collapsible row** block to open the settings.
3. Change the **Heading** text to display as the title.

   > We recommend a heading that clearly labels the content.

   > To show different headings on different product pages, you can [create new templates](/stiletto/general/editing-themes/using-templates.md#create-and-assign-multiple-templates) or [insert dynamic content with metafields](/stiletto/general/adapting-your-theme/dynamic-content-with-metafields.md)
4. Add **Body** text that will display when the row is opened.

   > Use the formatting buttons to add text styles, links, or lists. To learn more, see Shopify's [Rich text editor guide](https://help.shopify.com/en/manual/shopify-admin/productivity-tools/rich-text-editor#format-text-with-the-rich-text-editor).

   > To show different text on different product pages, you can [create new templates](/stiletto/general/editing-themes/using-templates.md#create-and-assign-multiple-templates) or [insert dynamic content with metafields](/stiletto/general/adapting-your-theme/dynamic-content-with-metafields.md)
5. (*Optional*.) Under **Page for content**, select a page to replace the **Body** text.
6. Click **Save**.

</details>

<h2 align="center"><strong>Add dynamic content for different products</strong></h2>

***

If you want to show different text for specific products, you can use Shopify's **metafields** and **dynamic sources**. These features allow you to store custom information for each of your products and automatically display that information on the correct product pages.

Follow the steps below to create metafields for your products, add text to your products' metafields, then use **Dynamic sources** to connect those metafields to text fields in your theme editor.

> For a general introduction, see our [Dynamic sources and metafields tutorial](/stiletto/general/adapting-your-theme/dynamic-content-with-metafields.md).

### <mark style="color:$primary;">**1. Create metafield for products**</mark>

Shopify's **Metafields** lets you store additional information about your products. You can create custom fields to hold different types of information in your Shopify admin, and enter unique content for each of your products.

The steps below tell you how to add a metafield for storing text that you want to display in the accordion block.

<details>

<summary><mark style="color:blue;"><strong>STEPS</strong></mark></summary>

In your theme editor (**Customize**):

1. Click on a **Row** block to open the settings.
2. Next to the **Heading** or **Body** field, click the **Insert dynamic source** button and select **(+) Add Metafield**.

   ![](/files/r5q15cK87usPI6rAhrGA)

   Alternatively, go to **Settings > Custom data** in your **Shopify admin**.
3. Click the **Products** tab.
4. Click the **Add definition** button in the top-right.
5. Enter a **Name** that describes what information the metafield will contain. For example: "Shipping", "Materials", "Details".

   ![](/files/i03ZGn9lpU7EyIm43asR)
6. Click **(+) Select type** button and select **Single line text** or **Multi-line text**.
7. Click **Save**.

</details>

### <mark style="color:$primary;">**2. Add content to metafields**</mark>

Once you've created **Metafields** for your products in the Shopify admin, you can now add content to those fields for your products in the Shopify admin.

<details>

<summary><mark style="color:blue;"><strong>STEPS</strong></mark></summary>

In your **Shopify admin**:

1. In your Shopify admin, open one of your **Products**.
2. Scroll down to the **Metafields** section and enter the text for your heading or text in the metafields that you created.

   ![](/files/MNrAh63jIqMB3RPmR67P)
3. Click **Save**.
4. Repeat steps 1 - 3 to enter content to the metafields for each of your products.

</details>

### <mark style="color:$primary;">**3. Insert metafields as dynamic sources**</mark>

Now that the **Metafields** of your products have content, you can go to the theme editor to insert a **Dynamic source** to the **Collapsible row** block.

<details>

<summary><mark style="color:blue;"><strong>STEPS</strong></mark></summary>

In your theme editor (**Customize**):

1. Click on a **Collapsible row** block to open the settings.
2. Click the **Insert dynamic source** button next to **Heading** or **Text** field.

   ![](/files/wU9VO64FnToSpqim5ZiW)
3. Select the **Metafield** that you created.
4. You can now preview your store to confirm the correct content appears when viewing different products.
5. Click **Save**.

</details>

***

> **Related links**
>
> [Product template](/stiletto/product-pages/product-template.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.fluorescent.co/stiletto/product-pages/product-page-blocks/collapsible-rows-block.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
