Skip to content

✨ 🌋 A WordPress starter theme with a modern front-end development workflow.

License

Notifications You must be signed in to change notification settings

mystroken/genese

Repository files navigation

✨🌋 Genese

contributions welcome Tweet

Genese is a WordPress starter theme with a modern front-end development workflow.
Based on HTML5 Boilerplate, BrowserSync & WebPack (HMR).


🎉 Features


📌 Modern front-end development workflow:

  • Hot Module Replacement for Js & Scss files.
  • BrowserSync to watch changes on PHP files.

📌 WordPress development workflow enhanced:

  • Template wrapper: removes repetitive inclusions in template files.
  • A nice organization of the code with some SEO snippets.

Usage

1. Clone the repository to the WordPress theme directory.

git clone https://github.com/mystroken/genese.git

2. Remove the .git folder.

cd genese && rm -rf .git/

3. Enjoy coding your theme with Genese.

genese/               # → Root folder for the project
├── app/
        ├── inc/      # → WordPress Hooks and miscellanous helper functions.
        └── walkers/
├── resources/
        ├── assets/   # → Frontend assets source and Configs of compiling process.
        ├── lang/
        └── scripts/  # → Do touch, scripts to compile assets.
└── template-parts/

3.1 — Customize the frontend.

First you should get Nodejs installed on your machine. Then install npm dependencies

npm install

Configure the assets bundling ./resources/assets/config.js Start the dev script

npm run start
npm run build
  • 3.1.1 — Customize webpack
  • 3.1.2 — Include scripts into WordPress

3.2 — Setup the theme.

  • 3.2.1 — Declare navigations
  • 3.2.2 — Declare widget areas (sidebars)

3.3 — Customize templates

  • 3.3.1 — Customize the base template
  • 3.3.2 — Customize the template parts
    • 3.3.2.1 — Index views (index.php, archive.php, search.php)
    • 3.3.2.2 — Single views (single.php, page.php)

Inspired by

Releases

No releases published

Packages

No packages published