Appearance
Collapsible rows β
This guide describes setting up the Collapsible rows section.
Use the section to add headings to a page with corresponding rows of text that expand and collapse.
βThe previous video shows a Collapsible rows section on a store's home page. The section contains three rows of heading text, with a plus icon + displayed at the end of each row on the right. When the store visitor selects a plus icon, the section expands or collapses the corresponding body text block in each row.
For general guidance with modifying sections, refer to Sections overview and Shopify help: Sections and blocks.
Set up a Collapsible rows section β
To set up a Collapsible rows section:
In Theme editor, at the top of the page, use the theme templates dropdown menu to select a page that contains a Collapsible rows section.
Note
The section can be added into any page, except Checkout and Gift card pages. To add the section into the current page, select Add section > Collapsible rows. Refer to Shopify help: Add a section.
Baseline includes a dedicated Collapsible rows page template. The Collapsible rows page is pre-configured with a Collapsible rows section. To access the Collapsible rows page in Theme editor, use the dropdown to select Pages > Collapsible-rows.
From the side menu, select Collapsible rows.
Select a setting described in the following table.
| Setting name | Description |
|---|---|
| Heading font | Use the Heading font setting to specify a font for the section's heading text. Set the section's heading text to use the same font as Heading or Body text. |
| Heading font size | Use the Heading font size setting to specify a size for the section's heading text. Set the section's heading text to use the same text size as Standard, Feature, or Secondary heading text. Refer to Typography. To use this option, set the Heading font option to Heading. |
| Max width of expanded content | Use the Max width of expanded content setting to specify a maximum width for the section's expanded content area. When a store visitor selects a plus icon + beside a row of text inside the section, an expanded content area displays the block's body text. The options are None, Small, Medium, and Large. |
| Header > Subheading | In the Subheading field, enter text to display as a subheading for the section. Note that the Subheading field is hidden in Theme editor when the Heading field is empty. |
| Header > Heading | In the Heading field, enter text to display as a heading for the section. |
| Color > Color scheme | Use the Color scheme picker to select a color scheme for the section. Refer to Colors. |
| Theme settings | If available, select Theme settings to access additional settings for the section. Refer to Section theme settings menu. |
| Custom CSS | Select Custom CSS. In the CSS field, enter custom CSS styles to apply only to the current section. Refer to Shopify help: Add custom CSS. To apply custom styles to your entire online store, refer to Theme settings > Custom CSS. |
| Remove section | Select Remove section to delete the section from the current page. |
Note
To connect a metafield to a setting that supports metafields, select the Connect dynamic source icon displayed beside the setting in Theme editor.
To learn how to connect a metafield to a supported setting, refer to Shopify help: Connecting metafields to your theme by using the theme editor.
Configure a block within a Collapsible rows section β
A default Collapsible rows section contains eight Row blocks. To configure a block inside the section:
In Theme editor, at the top of the page, use the theme templates dropdown menu to select a page that contains a Collapsible rows section.
From the side menu, expand the Collapsible rows section menu.
To configure an existing block, select the block from the side menu.
To add a new block, select Add row, and then select the block you added.
Note
Inside the section, you can add, remove, show, hide, and move blocks. Refer to Configure blocks inside a section and Shopify help: Sections and blocks.
Apply a block setting described in the following table.
| Setting name | Description |
|---|---|
| Heading | In the Heading field, enter text to display as a heading inside the block. |
| Expanded content | In the Expanded content field, enter collapsible/expandable body text to display inside the block. Use the inline editor to format the text and add links as needed. |
| Remove block | Select Remove block to delete the block from the current section. |