Skip to content

OpenBook 3.2 — New Independent Stylesheet

OpenBook 3.2 was released tonight. You should get a plugin update notification soon. It includes the following enhancements and fixes:

  • Default styling has been moved from the templates to an independent stylesheet in the plugin folder. The content elements remain in the templates. Separating presentation from content is a best practice and was requested a while back.
  • Compatible with more themes. Replaced the default “div” tags with “span” tags (line returns handled in the stylesheet). Font sizes are handled with percents not pixels.
  • A fix for titles with single quotes.
  • The HTML option is now the default. You can still choose the shortcode option but it is no longer recommended as the best option. The HTML option takes up more space in the editor but it loads faster for the user.
  • A new “Pay it Forward for Literacy” button on the OpenBook settings page. See next post for more information.

Your old templates will stay the same. If you want the new styling, click the Reset button on the OpenBook settings page and the new defaults with stylesheet handling will be applied. You can always re-enter your old templates if you choose.

I released OpenBook 3.2.0 earlier this evening but noticed that the stylesheet was not being applied in the Preview or the Visual Editor. Funny, that didn’t happen during testing. I issued a fix, version 3.2.1. The Preview now displays correctly. The Visual Editor is also picking up the stylesheet except for the font sizes. Weird. I have yet to figure that out. In any case, the user will always see the display just like the Preview.

Update 11:00 pm. The update seems to be working fine in the Visual Editor in my live site. I will monitor this for awhile. I definitely recommend going ahead with the update.

Categories: Lab - News.

Comment Feed

One Response



Some HTML is OK

or, reply to this post via trackback.

Continuing the Discussion

  1. [...] links and the ease with which one can add books not already in its database). Openbook 3.2 includes a number of new features, among them a donate button on the settings page of one’s WordPress dashboard. Many authors [...]