Clone this repo.
-
In your CLI, run
composer install.
-
configure
local-config.php
based onlocal-config-sample.php
. (For subdirectory MAMP, please read the comment in the file. More in-depth here.) -
Hack away!
- Remove roots activation script.
- Select
Roots
as default themes insidelocal-config.php
- AWS Cloudfront & S3.
- WordPress SEO.
- In
wp-config.php
setup
This is simply a skeleton repo for a WordPress site. It is a light weight repo that will allow you to quickly setup your configuration.
It was inspired by this post by Scott Walkinshaw Use it to jump-start your WordPress site repos, or fork it and customize it to your own liking! If you do not have an idea how to use composer, you can also check out his screencast
- You have Composer installed.
- WordPress as a root install in
/wp/
- Custom content directory in
/app/
(cleaner)
Q: What process do I follow after a clone?
A: You will follow the next steps:
composer install
ran from your command line in the cloned project directory- Rename or Copy
wp-config-edit-and-rename.php
towp-config.php
and change the necessary information changes (database, etc). - Run your project site
/wp/wp-admin/
and under Settings >> General change the Wordpress Address to have/wp
likehttp://www.example.com/wp
and your Site Address would behttp://www.example.com
- Now, go fork this repo and play around with some custom installs of your own.
Q: Why are you including the plugins that install?
A: I like these as MY base, just fork this repo and create any list you want by changing the composer.json
configuration.
Q: Why are there multiple composer json files?
A: The composer.json
file is the base file for an install with some nice plugins. The others are my roots examples. To use the examples just copy and paste from one of them or rename into composer.json
. I will add more as I find them useful. Fork and put in a pull request to add one, I might just add it!
Q: I copied the composer-roots.json
to composer.json
How do I compile and activate the roots theme?
A: This will put roots into the wp-content/theme/roots
folder, but you must run the npm install
command from the roots folder. You will then run grunt
or grunt watch
to compile roots assets. Now you can activate the roots theme in you Wordpress site.
Q: I am getting a redirect error, how do I solve?
A: More than likely, you are getting this error with a new setup. Remember, this is a custom install path using composer. Your install path should look like http://<server-name>/wp/wp-admin/install.php
. By default, WordPress will try to go to the default /wp-admin/
path, but you want /wp/wp-admin/
.