In the Product template, the Collapsible row block lets you add multiple headings that reveal more text when clicked. It's great for answering common questions or adding further product details in a compact way.
Follow the steps to add a row block with a heading and body text. You can choose to 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.
STEPS
In your theme editor (Customize):
Under Product overview, click (+) Add block and select Collapsible row.
Click on the new Collapsible row block to open the settings.
Change the Heading text to display as the title.
We recommend a heading that clearly labels the content.
(Optional.) Under Page for content, select a page to replace the Body text.
Check the Expand by default option to reveal the row content when the page loads.
Select which Column to display the Collapsible row: Either the Right (in the product form) or on the Left (beneath the product media).
(Optional.) Click and hold the drag handles ⋮⋮ to rearrange the blocks:
Click Remove block in the block settings to delete a block.
Click the Eye icon to hide or unhide a block.
Click Save.
Add dynamic content for different products
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.
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.
STEPS
In your theme editor (Customize):
Click on a Row block to open the settings.
Next to the Heading or Body field, click the Insert dynamic source button and select (+) Add Metafield.
Alternatively, go to Settings > Custom data in your Shopify admin.
Click the Products tab.
Click the Add definition button in the top-right.
Enter a Name that describes what information the metafield will contain. For example: "Shipping", "Materials", "Details".
Click (+) Select type button and select Single line text or Multi-line text.
Click Save.
2. Add content to metafields
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.
STEPS
In your Shopify admin:
Go to your Product inventory in your Shopify admin and open one of your Products.
Scroll down to the Metafields section and enter the text for your heading or text in the metafields that you created.
Click Save.
Repeat steps 1 - 3 to enter content to the metafields for each of your products.
3. Insert metafields as dynamic sources
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.
STEPS
In your theme editor (Customize):
Click on a Collapsible row block to open the settings.
Click the Insert dynamic source button next to Heading or Text field.
Select the Metafield that you created.
You can now preview your store to confirm the correct content appears when viewing different products.