Fluorescent
Cornerstone
Cornerstone
  • Cornerstone Help Center
    • Start using Cornerstone
      • Migrate your theme
      • Theme licenses
    • FAQs
    • Video tutorials
    • Changelog
  • General
    • Editing themes
      • Adding sections
      • Using templates
      • Accessibility
      • Customizing your site
      • H1 heading tags
      • SEO for Shopify themes
      • Online store speed
    • Image guide
      • Web ready photography
      • Image sizes
      • File formats
      • Theme image settings
    • Adapting theme content
      • Edit default theme content
      • Multiple languages
      • Dynamic content with metafields
      • Unique content for markets
    • Update your theme
  • Theme styles
    • Theme settings
    • Style presets
      • Demo layouts
    • Colors
    • Fonts
    • Animation
  • Pages
    • Templates
      • Home page
      • Blog page
      • Blog posts
      • Collections list page
      • Contact page
      • Customer accounts
      • Password page
      • Search page
      • 404 page
    • Sections
      • Section styles
      • Content blocks
      • Blog posts
      • Collapsible row list
      • Collection list
      • Collection list buttons
      • Contact form
      • Countdown banner
      • Countdown bar
      • Featured collection
      • Featured collection with media
      • Featured product
      • Grid
      • Icon with text columns
      • Image hero
      • Media with content split
      • Multi-column
      • Newsletter
      • Newsletter compact
      • Overlapping media with content
      • Promotion grid
      • Quick links
      • Rich text
      • Sales banner
      • Scrolling content
      • Slideshow
      • Tabbed collections
      • Testimonials
      • Video hero
    • Popups
      • Sign up popup
      • Age verification
      • Countdown signup popup
      • Promotional popup
  • Header
    • Announcement bar
      • Language selector
      • Country selector
      • Social media icons
      • Announcements
    • Header
      • Logo
      • Layout and style
      • Mega navigation
      • Transparent header
    • Mobile menu
    • Search bar
  • Footer
    • Footer
      • Contact and social block
      • Links block
      • Logo block
      • Newsletter and social block
      • Text and image block
      • Language and currency
      • Payment icons
      • Custom liquid
  • Products
    • Product listings
      • Layout and style
      • Product card details
    • Product badges
    • Quick shop
  • Product pages
    • Product template
    • Layout and style
      • Media gallery
      • Sticky product details
      • Recommended products sidebar
      • Breadcrumbs
      • Navigation buttons
      • Gift card recipient form
    • Overview blocks
      • Product header
      • Description
      • Variant selector
      • Buy buttons
      • Share icons
      • Collapsible rows block
      • Complementary products
      • Custom option
      • Customer support block
      • Image block
      • Image with text block
      • Information popup
      • Product labels
      • Payments and trust
      • Stock level indicator
      • Text block
      • Text columns with icons
      • Text list with icons
      • App blocks
    • Variant options
      • Chips
      • Swatches
        • Enable swatches
        • Use default colors
        • Use custom colors
        • Use custom images
        • Change swatch styles
        • Show on product cards
        • Dynamic option availability
      • Sibling product swatches
      • Media grouping
    • Product recommendations
  • Collection pages
    • Collection template
    • Banner
    • Product grid
    • Filters and sorting
  • Cart
    • Cart page
    • Quick cart
      • Added to cart popup
    • Free shipping bar
    • Low inventory warning
    • Cross sells
  • Support
    • Support policy
    • Shopify vs Theme issues
    • Store access requests
  • For developers
    • Custom CSS
    • Custom fonts
    • Custom Liquid
    • Custom JavaScript events
    • Edit Theme JavaScript
Powered by GitBook
On this page
  • Set up row blocks
  • Add dynamic content for different products
  • 1. Create metafield for products
  • 2. Add content to metafields
  • 3. Insert metafields as dynamic sources

Was this helpful?

  1. Product pages
  2. Overview blocks

Collapsible rows block

Last updated 3 months ago

Was this helpful?

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

Set up row blocks


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.

STEPS

In your theme editor (Customize):

  1. Under Product overview, click (+) Add block and select Collapsible row.

  2. Click 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.

  4. Add Body text that will display when the row is opened.

  5. (Optional.) Under Page for content, select a page to replace the Body text.

  6. Check the Expand by default option to reveal the row content when the page loads.

  7. Select which Column to display the Collapsible row: Either the Right (in the product form) or on the Left (beneath the product media).

  8. Click Save.

Click Collapsible row block to find settings

Setting
Description

Expand by default

Show row as already opened with the text revealed.

Heading

The title of the row.

Body

Add text that's revealed when the row is opened. Use the buttons to make the text bold or italicized, or to add a link.

Page for content

Display content from a page create in your Shopify admin. This option is useful for creating and displaying tables (for product guides).

Custom liquid

Add custom Liquid code for apps or custom content.

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.

1. Create metafield for products

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):

  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.

    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".

  6. Click (+) Select type button and select Single line text or Multi-line text.

  7. 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:

  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.

  3. Click Save.

  4. 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):

  1. Click on a Collapsible row block to open the settings.

  2. Click the Insert dynamic source button next to Heading or Text field.

  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.


Related links

To show different headings on different product pages, you can you can or .

Use the formatting buttons to add text styles, links, or lists. To learn more, see Shopify's .

To show different text on different product pages, you can you can or .

See Shopify's and to learn more.

For a general introduction, see our .

Rich text editor guide ↗
Dynamic sources and metafields tutorial
Product template
Product overview blocks
Liquid reference guide
Liquid code examples
insert dynamic content with metafields
insert dynamic content with metafields
create new templates
create new templates