← All Projects

Primer

A WordPress theme boilerplate. The perfect starting point for your custom WordPress theme. ️

Categories

Languages

Tags

Command composer create-project fivefifteen/primer my-new-theme
Latest Version v0.1.1

Features #

  • Front-end dependency management using GitHub & npm as repositories via Fetcher
  • JavaScript & CSS/SCSS compilation/minification via Piler
  • Boilerplate code for configuring custom post types, taxonomies, and user roles
  • Some sensible plugin hooks:
    • Gravity Forms: Disable the built-in theme (so we can create a custom one)
    • Updraft Plus: Prevent backups being created for non-production environments
    • Yoast SEO: Custom breadcrumb separator when using the yoast_breadcrumb function

Requirements #

Usage #

Run the following command (replacing “my-new-theme” with your theme’s slug):

composer create-project fivefifteen/primer my-new-theme

Commands #

Command Description
composer build Compiles/minifies JavaScript & CSS/SCSS files via Piler
composer fetcher Displays a list of available Fetcher commands
composer fetcher install [...dependencies] Installs dependencies from GitHub or npm
composer setup Installs frontend dependencies and builds them
composer watch Watches for changes to JavaScript & CSS/SCSS files and recompiles/minifies as needed

License Information #

GPL-2.0 (See the license.md file for more info)

Get in Touch

We’d love to hear from you! Whether you have a question, want to discuss a project, or just need some advice, we are here to help. Fill out the form below, and we’ll get back to you as soon as possible. For urgent inquiries, feel free to give us a call or drop us an email directly.