40 Collapsible Subsections for Webbook
Collapsible subsections are useful for users whose books have long chapters with multiple smaller parts. Examples of works that this feature would be useful for include: textbooks, monographs, course syllabi, and more.
Four themes on Pressbooks offer the option to have collapsible subsections within a webbook chapter:
- McLuhan
- Clarke
- Asimov
- Jacobs
These are the most recently updated Pressbooks themes. We are in the process of updating all book themes on Pressbooks.com. Soon, every theme should have access to this feature.
Enabling Collapsible Subsections
If you are using the McLuhan, Clarke, Asimov, or Jacobs themes, you can enable collapsible subsections by following these steps:
1. Go to Appearance > Theme Options > Web Options from the left-hand menu of your book’s dashboard
2. Scroll down to Collapse Sections and click the box next to “Collapse sections within front matter, chapters, and back matter”
3. Click Save Changes
You can now add subsections to your webbook using the method below.
Creating Collapsible Subsections in Your Webbook
Now that you’ve enabled the setting, you need to implement them in your chapters. To do this, follow these steps:
1. Access your chapter from the Organize page
2. Create the headings that you’d like to become your subsection titles, if they aren’t already in the body of your text
3. Highlight the heading and tag it with a Heading 1 paragraph style from the visual editor toolbar
4. Repeat for each subsection in the chapter.
5. Click Save on the chapter
After, you can view your webbook to see the result. Readers can click the subsection heading or the plus mark next to it to open the subsection.
Each subsection is independent of the other. If you expand one section, the other two will stay collapsed. Similarly, if you collapse a section, the rest will remain expanded.
Click on the minus or plus icons at any time to collapse or expand the section.