[WordPress] A framework for creating awesome, flexible WordPress themes
Branch: master
Clone or download
khoipro and carrieforde Support/build (#101)
* Add missing packages in build command

* Fix error sass when compling
Latest commit 4808872 Jan 4, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update PULL_REQUEST_TEMPLATE.md Feb 19, 2016
inc Fixes activation notice Oct 2, 2018
languages Adds translation task (wp-pot) Jun 18, 2018
template-parts Add a capability check to the edit link template tag and add comment … Mar 7, 2016
vendor Removes CMB2 & Better Font Awesome submodules Jul 15, 2018
.Prettierrc Adds and runs Prettier Mar 15, 2018
.babelrc Updates Babel & webpack config for webpack 4 support Nov 15, 2018
.editorconfig Updates config files Jun 16, 2018
.eslintrc.json Updates config files Jun 16, 2018
.gitignore Updates .gitignore Mar 16, 2018
functions.php Updates for 5.0 support Dec 21, 2018
header.php Adds hooks after opening & before closing body tags Oct 2, 2018
index.php Removes sidebar by default and adds sidebar page template Jul 15, 2018
package.json Support/build (#101) Jan 4, 2019
phpcs.xml.dist Adds PHPCS rules & fixes linting errors Jun 18, 2018
readme.md Updates for 5.0 support Dec 21, 2018
rtl.css Finish first pass at mobile nav styles Dec 6, 2015
screenshot.png Initial commit of the Alcatraz theme Nov 13, 2015
sidebar.php Cleans up sidebar Jun 24, 2018
single.php Removes sidebar by default and adds sidebar page template Jul 15, 2018
webpack.config.js Updates for 5.0 support Dec 21, 2018



Contributors: carrieforde, braad, jgonzo127
Tags: two-columns, left-sidebar, right-sidebar, flexible-header, accessibility-ready, custom-menu, custom-logo, editor-style, featured-images, theme-options, threaded-comments, translation-ready

Requires at least: 4.0
Tested up to: 5.0.2
Stable tag: 1.0.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Alcatraz is a theme designed and developed with the WordPress theme developer in mind. Use Alcatraz as a starter theme, or use it in conjunction with alcatraz-child to quickly spin up a custom theme.


Alcatraz is a developer's theme packed with all kinds of goodies to improve your development workflow:

  • Theme hooks
  • Lightweight CSS Normalization with Sanitize.css
  • Sass
    • Sensible configuration
    • Flexible architecture
    • Linting with Stylelint
    • Compilation
    • Minification
  • JavaScript
    • Focused on Vanilla JS, but ready for anything (including jQuery & React!)
    • Supports ES Next with Babel
    • Linting with ESLint
    • Concatenation
    • Uglification / minification
  • Icon (SVG) concatenation & minification
  • Image minification
  • Test-driven development (TDD) support with Jest
  • Type-checking support using Flow
  • Webpack


Because Alcatraz is meant as a developer's theme, a basic grasp of the command line as well as the following dependencies is beneficial:

Getting Started

To get started, clone this repo to your computer:

git clone https://github.com/carrieforde/Alcatraz.git alcatraz

Once you have cloned the project, move into the project folder, and install the Node dependencies:

cd /path/to/project
npm install

Finally, after running npm install, you'll need to tell Webpack about your local site domain so you can use BrowserSync to monitor changes during development:

  1. Search for https://alcatraz.test in webpack.config.js and replace it with the URL for your local site.
  2. Run npm run dev to kick of webpack and begin development.

Using Alcatraz as a starter theme

If you want to use Alcatraz as a starter theme, you'll likely want to replace all instances of Alcatraz with the name of your new theme. You'll need to do a six-step find and replace to capture all instances of alcatraz throughout the theme:

  1. Search for ALCATRAZ_ (capitalization matters!) to capture the theme constants.
  2. Search for Alcatraz (capitalization matters!) to capture the theme name.
  3. Search for 'alcatraz' (inside single quotes) to capture the text domain.
  4. Search for "alcatraz" (inside double quotes) to capture PHPCS text domain.
  5. Search for alcatraz_ to capture all the function names.
  6. Search for Text Domain: alcatraz in style.css.
  7. Search for alcatraz (with a space before it) to capture DocBlocks.
  8. Search for alcatraz- to capture prefixed handles.

NPM Scripts

Alcatraz comes with a host of NPM script commands to perform various development tasks.

npm run build

Generates bundled, production-ready files with webpack.

npm run dev

Uses webpack to spin up a development server at http://localhost:3000, and initiates webpack --watch. Changes to files in ./src will be bundled automatically, and the site will be reloaded.

npm eslint

Runs ESLint against all JavaScript files in the /src directory. Only errors will be displayed in the console.

npm eslint:fix

A subtask for ESLint that not only checks for JavaScript linting errors, but also auto-fixes any fixable issues.

npm format

Keep formatting consistent between developers with Prettier. Enforces whether to use tabs or spaces, the number of spaces to use, single vs. double quotes, etc. Automatically fixes JS, JSX, and SCSS files.

npm run stylelint

Runs Stylelint to enforce rules for style files (.css, .scss, etc.) in the /src directory. Flags errors in the console.

npm run stylelint:fix

A subtask for Stylelint that not only checks against style rules, but automatically fixes fixable issues.

npm run wp-pot

This script looks for all translatable strings within the theme's PHP files, and produces a .pot file for translations (within the languages folder).


Alcatraz includes style and JavaScript linting by default using Stylelint and ES Lint, respectively. Alcatraz adheres to the WordPress Coding Standards


Customizing Rules


Disabling Rules



Customizing Rules


Disabling Rules



  1. In your admin panel, go to Appearance > Themes and click the Add New button.
  2. Click Upload and Choose File, then select the theme's .zip file. Click Install Now.
  3. Click Activate to use your new theme right away.



  • Initial release