Improved CSS Customization in Pressbooks

If you use custom CSS in Pressbooks, we’re making the experience better for you!

You will now be able to add custom styles to your book without needing to inherit, search and edit the entire stylesheet for your theme, making things easier and more reliable over the long term.

This improvement will:

  • Make it easier for you to see and keep track of any changes you make (so you don’t accidentally override prior customizations or break everything mysteriously!)
  • Ensure your book benefits from all the bug fixes and improvements we make to our themes (the old way of handling customisation meant some books did not benefit from these, which could cause problems over time.)
  • Allow you to use the Cover Generator tool without switching themes

To access the new custom styles feature, go to “Appearance” → “Custom Styles” on the lefthand menu in your book’s editing interface. You can read the full instructions on how to use the new feature in our guide.

What if I’ve already edited the CSS on my book(s)?

If you have modified the CSS for an existing book using the Pressbooks Custom CSS theme, don’t worry, you will NOT be affected by this change. You can leave everything as is on your book(s) indefinitely.

However, we are retiring the Custom CSS theme as of October 18, 2017. This means that after that date:

  1. Any new books will use the new Custom Styles feature for any custom changes
  2. If you have an existing book using the Custom CSS theme and need to switch themes for any reason, you will need to save your CSS first! Once you change the theme on your book, you won’t be able to return to the Custom CSS theme and will lose your changes.

If you do find yourself needing to change your theme, follow these steps to retain your changes:

  1. Go to “Edit CSS” and copy the stylesheet for any of the formats where you (or a Pressbooks support person) have made changes from the original theme
  2. Paste the stylesheet(s) into a text editor (e.g. Notepad, MS Word etc.)
  3. Change your theme
  4. Go to “Appearance” → “Custom Styles”
  5. Enter the sections of your previous stylesheet that you had changed in the “Your Styles” section
  6. Save and export your files!

With the Custom Styles option, you get better control over your book’s appearance across export formats and also benefit from the periodic enhancements that we make to our themes!

Want to test out the new feature? Read more in our guide, and let us know what you think.

Related Posts

A Big, Warm Welcome to Pressbooks’ Newest team members: Carlos, Ho Man, and Başak

It’s time for us to lift the curtain on some major changes here at Pressbooks!  We’ve spent a lot of time over the last month doing some much-needed maintenance across the platform, including theme improvements and changes to the user experience for institutions using single-sign on technology. These past weeks also included important work on

Read More

Introducing: Malala

Take a look at our new textbook theme and try out its coolest feature: interchangeable fonts As some of you may have noticed, we have a tradition here at Pressbooks of naming our book themes after famous authors. We’ve tried to imprint the legacy that these authors and their books have left on literature onto

Read More

Scheduled Maintenance

To boost the performance and security of the network, we intend to perform scheduled maintenance on Thursday, Sept. 12 between 3 a.m. and 5 a.m. Eastern. What to expect. You can expect a short service interruption (1-2 minute downtime expected) at some point during this time frame, which would cut off any long processes like imports/exports.

Read More