Warning: Constant MULTISITE already defined in /home/pbmalartu/public_html/wp-config.php on line 107

Warning: Constant SUBDOMAIN_INSTALL already defined in /home/pbmalartu/public_html/wp-config.php on line 108

Warning: Constant DOMAIN_CURRENT_SITE already defined in /home/pbmalartu/public_html/wp-config.php on line 109

Warning: Constant PATH_CURRENT_SITE already defined in /home/pbmalartu/public_html/wp-config.php on line 110

Warning: Constant SITE_ID_CURRENT_SITE already defined in /home/pbmalartu/public_html/wp-config.php on line 111

Warning: Constant BLOG_ID_CURRENT_SITE already defined in /home/pbmalartu/public_html/wp-config.php on line 112

Warning: The magic method Pressbooks\Book::__wakeup() must have public visibility in /home/pbmalartu/public_html/wp-content/plugins/pressbooks/inc/class-book.php on line 62
Collapsible Subsections for Webbook – Pressbooks User Guide ="http://www.w3.org/2000/svg" viewBox="0 0 512 512">

Parts and Chapters: In Detail

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

Click on the Web Options tab on the Theme Options page

2. Scroll down to Collapse Sections and click the box next to “Collapse sections within front matter, chapters, and back matter”

Click the box next to "collapse sections"

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.

Click the subsection title or plus mark to open the collapsed section.

 

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.

A second section collapsed while the first and third are expanded.

Click on the minus or plus icons at any time to collapse or expand the section.

License

Icon for the Creative Commons Attribution 4.0 International License

Collapsible Subsections for Webbook by admin is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book

css.php