My starter theme based on underscores.
- Create local WordPress site.
- Delete
wp-content/plugins/hello.php
- Delete
wp-content/themes/twentyfifteen
- Delete
wp-content/themes/twentysixteen
- Download or fork this repo and place it in
example.dev/wp-content/themes/
- In the
wp-content/themes/ll_start/
folder, delete the.git
folder - In the
wp-content/themes/ll_start/
folder, delete the.gitignore
- In your finder, rename the
starter
folder toexample
- Open the whole
example
folder in your text editor (I use Sublime Text) - Search for
'll_start'
and include the single quotations to capture the theme's text domain.- Replace with
'example'
.
- Replace with
- Search for
ll_start_
to capture all the function names.- Replace with
example_
.
- Replace with
- Search for
Text Domain: ll_start
in style.css- Replace with
'Text Domain: example
. - the text domain must match the theme's folder name. This is why we already renamed the folder to
example
. - the text domain is used across all functions on the website.
- Replace with
- Search for
ll_start
(with a space before it) to capture DocBlocks.- Replace with
example
.
- Replace with
- Search for
ll_start-
to capture prefixed handles.- Replace with
example-
.
- Replace with
- Search for
Theme URI: http://lucaslemonnier.com
to capture the theme's URL- Replace with
Theme URI: http://example.com
(the client or project's URL)
- Replace with
- Search for
Description: Custom WordPress theme developed for ll_start
to capture the theme description- Replace with
Description: Custom WordPress theme developed for Example by Your Name
- Replace with
- In the
wp-content/themes/example/gulpfile.js
file:- Search for
ll_start.dev.cc
- Replace with
example.dev.cc
(or whatever your local site URL will be)
- Search for
- Type
npm install
orsudo npm install
to install the Gulp dependencies for our theme - Once the dependancies download, type
gulp default
to test it out
- Move
.gitignore-place-in-wp-content
file to/wp-content/
folder - Rename
.gitignore-place-in-wp-content
to.gitignore
- Run
git init
from command line