Collapsible Subsections for Webbooks

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

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 


The theme option page showing the checkbox to collapse sections


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.


Icon for the Creative Commons Attribution 4.0 International License

University of Arkansas OER Style Guide Copyright © 2023 by Lora Lennertz is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book


Comments are closed.