A port of Ghost's Casper theme to Wordpress
CSS PHP JavaScript
Switch branches/tags
Nothing to show
Latest commit cc3e64a Nov 19, 2016 @lacymorrow update license field
Permalink
Failed to load latest commit information.
css 1.1.5 Oct 21, 2015
fonts Fix #44: Social Icons; Add FULL fontawesome library; remove ghost icon Sep 9, 2014
img Updated gruntfile; package.json; README; file structure; Added grunt … Apr 19, 2014
inc Simplify change to casper_sanitize_color May 19, 2015
js remove broken imagemin fix #113 Nov 19, 2016
languages Fix #17; Fix #43; Allow excerpts; Add auto-excerpt option Oct 16, 2014
src Basic style for pingbacks too Dec 13, 2014
.gitignore Adds grunt, less preprocessor, and compressed style.css Apr 19, 2014
404.php html tag corrected Dec 9, 2015
Gruntfile.js remove broken imagemin fix #113 Nov 19, 2016
README.md Update README.md Jul 23, 2015
archive.php Initial commit Mar 20, 2014
changelog.txt 1.1.5 Oct 21, 2015
comments.php Initial commit Mar 20, 2014
content-none.php Fix content position for content-none template May 10, 2014
content-page.php Fix #58; Display author images Oct 16, 2014
content-single.php Fix #58; Display author images Oct 16, 2014
content.php Fix #17; Fix #43; Allow excerpts; Add auto-excerpt option Oct 16, 2014
footer.php 1.1.5 Oct 21, 2015
functions.php Revert "Fixing background color on .site-head" Jul 6, 2015
header.php 1.1.5: Fixes #98; Open social links in new window/tab Oct 19, 2015
index.php Completed pagination Mar 21, 2014
license.txt Changed to GPL license; imagemin 0.7.0 May 16, 2014
logo.png Added asset licenses. Getting ready for wordpress.org Mar 31, 2014
package.json update license field Nov 19, 2016
page.php Added customizer API controls Mar 20, 2014
readme.txt Update readme.txt Jul 23, 2015
rtl.css 1.1.5 Oct 21, 2015
screenshot.png Fixes #42; Capital P in WordPress screenshot Sep 5, 2014
search.php Initial commit Mar 20, 2014
sidebar.php Completed pagination Mar 21, 2014
single.php Added customizer API controls Mar 20, 2014
style.css 1.1.5 Oct 21, 2015
yarn.lock remove broken imagemin fix #113 Nov 19, 2016

README.md

Casper

A Ghost-like WordPress theme

Casper (for WordPress) is a simple yet beautiful theme for bloggers.

Inspired by the Ghost blogging platform, Casper is a WordPress port of the default theme by the same name. The goal of this project is to emulate the gorgeous theme while taking advantage of features exclusive to the WordPress framework. There are plenty of customization options included, accessible through the WordPress Customizer. Already included are hooks to serve responsive images appropriately and media queries to provide a fast and seamless experience from desktop to mobile.

Demo

Download Casper from the WordPress.org Theme Directory

Usage

Download the zip package of the theme and install either automatically through the WordPress Dashboard > Appearance tab, or by uploading the casper-wp folder to your WordPress/wp-content/themes directory.

The style.css file in the theme directory is minified. A human-readable version of is located at css/style.css.

Editing Casper

The recommended way to edit the Casper theme is to use the Casper child theme. This will ensure that none of your changes will be lost when you update Casper. Install and activate the child theme and make changes as you would normally. Any file included in the theme will override a Casper theme file (exceptions being functions.php and style.css).

If you want to make changes to the core theme, or want to contribute, read below on how to build the package.

Using Grunt to build the package

A gruntfile.js is included. cd into the theme directory and run npm install to install Grunt and all dependencies locally. Run grunt to build or grunt watch to continuously build.

i18n

To generate a .pot language file you must have xgettext installed. On OSX using homebrew run brew install gettext && brew link gettext --force to install. Run grunt i18n to generate language files.

Tasks
  • Compile src/css/style.less and other LESS and CSS files in src/css/
  • Any CSS is combed, linted, prefixed, then compiled with css/style.css
  • css/style.css is minified into style.css
  • Images in src/img/ are compressed and copied to img
  • Theme JavaScript and other js files in src/js/ are linted, minified, and combined into js/main.js

Getting Involved

Want to report a bug, request a feature, or help me build this project? The more the merrier!

Many thanks to the Ghost & WordPress teams, as well as the Underscores _s contributers, and kvendrik. Built using all of the above.

Roadmap

License

GPL v2.0 © Lacy Morrow

All assets licensed under a GPL-compatible license.