Accordion – PC Custom Blocks

Overview

The Accordion block shows a title that visitors can click to hide or reveal the content beneath it. In the block inserter, look for Accordion – PC Custom (New) under PC Custom Blocks.

What does it look like?

My great accordion item

I can add some content to the accordion item, which is revealed when you click on it!

Another great accordion item

I’d like to think that this one is just as good as the first one!

How do I use it?

  1. Add the Accordion – PC Custom (New) block to your page.
  2. Type your accordion’s title on the first line.
  3. Click below the title, where it says Type / to choose a block, and add your content. You can use paragraphs, lists, images, links and other blocks.
This Accordion Contains Images and Text
A granite pillar and the snow-covered, wrought-iron gate at Providence College’s Eaton Street entrance.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean quis pretium enim. Integer nisl tortor, rhoncus et laoreet nec, molestie condimentum libero. Duis ullamcorper turpis lectus, eget vulputate justo pellentesque finibus. Vestibulum vulputate sapien nec erat vulputate tincidunt. Nulla facilisi.

Quisque semper rhoncus mollis. Maecenas placerat ultricies urna, vel fermentum leo condimentum a. Suspendisse varius, urna porttitor dapibus cursus, eros enim tincidunt quam, non vehicula lectus arcu sit amet velit. Vivamus vehicula massa posuere ex suscipit, in pellentesque diam cursus.

A Call to Action

Block settings

These are the settings available in the accordion block:

  • Reverse colors: switches the accordion to its alternate (black) color scheme.
  • Is the accordion title a heading?: adds a visually hidden heading to the accordion so screen-reader users discover it when navigating by page headings or using the page outline. It also helps to express the organizational importance of the information for search engines. (Sighted visitors won’t see any change.) Turn this on when the accordion introduces a distinct section or subtopic within the page’s heading hierarchy, especially if you have a large amount of information inside the accordion.
  • Heading level: appears when the heading option is on. Pick the level that fits your page’s heading order. For example, choose H3 if the accordions sit under an H2 section heading.
  • Open by default: the accordion starts out open when the page loads.
  • Name: give a group of accordions the same name Then opening one will automatically close the others.

When should I use it?

When you have a design-focused page that should have scannable FAQ-like information with brief and then expanded topics.

Is there anything else I should know about this block?

  • You can copy and paste accordions. Unlike the previous version, duplicating an accordion won’t cause problems.
  • Write clear, engaging titles. Visitors need to know what the accordion is hiding and why they should click on it.