The WordPress Details block lets a visitor reveal extra content by opening a short summary. Use it for an optional explanation, not as the only place to explain what a page offers or what a visitor needs to do next.
A shorter-looking page is not automatically a clearer page. If every important answer is behind another click, visitors must guess which panel contains the information they need. Start by deciding what belongs in the open page, then use disclosure for supporting detail.
Choose what must be visible before choosing the block
Consider an illustrative workshop page. The subject, intended audience and how to enquire belong in its main introduction. A longer description of what to prepare could sit under a summary such as “What should I bring?” This is a content-design example, not a report of a client test.
Write a one-sentence answer to the visitor’s main question outside the disclosure. Read that visible page with every panel closed. If it no longer makes sense, move the missing information back into the main text.
Add one useful disclosure in the block editor
- Open a draft or a safe preview of the page you are editing. Check that you are using the WordPress block editor; a page-builder widget may have different controls.
- Insert a Details block from the block inserter, or type
/detailsin an empty paragraph and choose the matching block.
Open the block inserter with the plus button, search for Details, and select the matching block. - Replace the summary placeholder with a specific question or label. “Delivery preparation” tells readers more than “More”.
- Add the supporting answer inside the block. Keep links and instructions understandable when the panel is open. Use List View to select a nested block if several blocks look alike.
- Preview the result in the actual theme. If the supporting answer should initially be visible, review the block’s “Open by default” option.

Select the Details block. Edit the summary and nested answer in the canvas, and use Block settings for Open by default.
The official WordPress Details block guide documents these insertion and initial-state controls. Their presence in documentation does not prove that an older installation, restricted editor or page-builder interface exposes the same options.
Independent panels or one open at a time?
Current WordPress documentation describes a name attribute for grouping Details blocks: matching names associate panels so opening one closes another. Leave the field empty when panels should operate independently. Check the available settings and browser behaviour on your own site before relying on this feature.
For a comparison, independent panels may be easier because readers can keep two answers open. For a short sequence, closing other panels can reduce the space used, but it can also move content on the screen. Choose according to the reading task rather than treating auto-closing as a universal improvement.
A summary is not a replacement for a heading
The underlying HTML uses a details container with a summary control. Do not assume that making the summary text large creates a section heading. Keep meaningful page headings around the content. Where your editor offers a separate Accordion block, review its structure and controls before choosing it for a related group of questions.
Avoid rebuilding an entire long page as nested disclosures. A visitor looking for one answer should not need to open several layers. Also avoid putting an unrelated link in the label merely to save space; give the toggle a clear, predictable job.
Check the page as a visitor
- Use a narrow mobile viewport and open the longest panel. Check wrapping, spacing and whether links remain usable.
- Use the keyboard to reach the summary. Confirm a visible focus indicator and test opening and closing it in the browsers you support.
- Review the closed-page reading order and heading outline. Essential instructions must still be discoverable.
- Test a page containing images as well as text. A useful disclosure does not replace descriptive image handling; see our guide to image text and captions.
These are checks to perform, not claims that this site’s current theme has passed them. Native controls still need review in their real layout and with the assistive technology relevant to your audience.
For frequently reused disclosures, check the guide to synced and unsynced patterns before editing an existing answer. For a menu or other frequently updated page, use the mobile restaurant menu guide to plan what visitors need to see immediately.
To review the result, compare the WordPress Heading block guide with W3C’s keyboard guidance and W3C’s headings and labels guidance. These cover heading structure, keyboard access and whether labels describe their purpose.
Common questions
Does a Details block make content private?
No. Closing a panel is a presentation choice, not permission control. Never place confidential material there expecting it to be protected.
Will using it improve rankings?
There is no ranking guarantee from adding a disclosure. Its purpose is to help readers navigate useful supporting information. Keep the main answer clear and avoid hiding weak or repetitive copy behind toggles.
Should every FAQ answer start closed?
No. If a question is essential to the page’s purpose, consider answering it directly in the visible copy. Use disclosure when it genuinely helps the remaining reading task.
Start with one page
Choose one optional explanation, write a clear summary and test it before converting a whole section. If you would like help deciding which answers belong in the main page, discuss your website with The Web Designer and share the existing page and its intended audience.
Sources
Documentation reviewed 28 November 2026: WordPress Details block; MDN details element; WordPress Accordion block. This article combines documented controls with editorial recommendations; it does not claim a live accessibility audit.












