Content component page example
Accordion
The Accordion component provides a space-efficient way to display content in collapsible sections. This is ideal for FAQs, instructional content, and for reducing page length.
Using component
The "Title" will appear as a text on the collapsed Accordion panel header.
The "Content" will appear and the content area of the Accordion panel. If the Accordion is not set to be expanded, the content will be hidden initially.
Expanding Accordion panels
By default, Accordion panels are collapsed. To expand any Accordion panel, check the "Expanded" checkbox. [screenshot of admin UI here]
This will result in accordion looking like this [need to update this phrase] [screenshot of FE UI here]
To expand all panels, check the "Expand all" checkbox. This will override the values set in "Expanded" checkbox for each Accordion panel.
Styling
Theme
Every component in CivicTheme, such as the ["Content"] component, can be shown as a Light
or Dark
theme component variant. This allows you to build more engaging landing pages with a mix of light and dark components. Use "Theme" radio button selector to change between themes.
Vertical spacing
Vertical spacing adds space before, after or both before and after a component. It is used to visually separate a component from other components when they are vertically stacked on the page. Use "Vertical spacing" dropdown to chose the appropriate values.
You may need to adjust the vertical spacing on adjacent components to create visual balance.
Background
Setting a background on a component can make the component visually stand-out on the page. Check the "Background" checkbox to apply a background to the component.
[Note: not all components have a background, in the case where the Theme sets the background colour of the component. In these cases do not include this section]
Configuring
The component can be configured on the theme settings page located at /admin/appearance/settings/<site-name>
. You would need to be logged in as a user with a Site administrator role in order to making such changes.
Summary length
The Summary length setting allows to set the length of the content shown as the summary on the card. For cases when the card is used to display the referenced content with large amount of content, the automated summary length trimming to a pre-set length can help to avoid cards of the large size.
When the length is set, the content will be trimmed to the set length of characters and an ellipsis (…) will be added to the end of the text
On the theme settings page:
Scroll down to the 'Components' section and select the Promo card.
Enter the number of characters to trim into the Summary length field or enter 0 to disable this f
Press Save configuration
[screenshot of the admin form with the Promo card tab selected]
Last updated
Was this helpful?