This is a simple child theme for the excellent WordPress theme Hemingway by Anders Noren.
Current status: in development. This child theme was developed for the website for urban fantasy author Anna McIlwraith, is under active development, and is likely to change without notice. Feel free to have a play and fork if you like it!
Hemingway is an elegant, beautiful theme for blogging, and seems like an ideal fit for authors. I wanted to add a couple more features to extend the theme to nicely display a collection of books for an author. The assumption is that each book would be created as its own page, with the book cover image set as the featured image for the page.
- A book detail template. This template uses the featured image attached to a page as a hero image for the page, displayed at the left on larger width screens, and full-width on smaller screens.
- A pages listing template. This template displays a grid of tiles of the sub-pages of the current page. The tile uses the featured image of the child page as its image. Depends on flexbox support in the browser.
The following custom fields can be added to a page, and will be rendered beneath the main page heading on the book detail template:
- series_title - the title of the series (if the book is a part of a series)
- series_permalink - a URL to link to the series title
- book_number - which number the book is, within the series
- hide_in_pages_listing - a y/n field to hide a book from the pages-listing template
The theme also switches on the 'excerpt' feature for pages.
- First, download and install Hemingway for your WordPress site.
- Copy this child theme to your
/wp-content/themes/
directory, and activate it within the WordPress admin.