ellifriends/wp-boilerplate

Standard WordPress layout for Elli & Friends projects

dev-master 2018-08-22 18:45 UTC

This package is not auto-updated.

Last update: 2024-04-28 03:14:38 UTC


README

Standard WordPress layout for Elli & Friends projects.

Setup instructions

composer create-project ellifriends/wp-boilerplate -s dev

Structure

| config              # - WordPress and environment configurations
| web                 # - Web root and WordPress content directory
|--| app              # - Application folder  
|  |--| index.php     # - WordPress view bootstrapper
|  |  | mu-plugins    # - Must use plugins
|  |  | plugins       # - Plugins
|  |  | themes        # - Themes
|  |  | uploads       # - Uploads
|  | wp               # - WordPress core (never edit)
|  | wp-config.php    # - Required by WordPress (never edit)
| resources           # - CSS and JavaScript pre-processors using Laravel Mix

Configuration

Modify environment configuration in .env after your need.

Multisite URL fixer

Roots multisite-url-fixer mu-plugin on subdomain installs to make sure admin URLs function properly. That plugin is not needed on subdirectory installs, but will work well with them.

Run composer require roots/multisite-url-fixer to install the package. It will automatically install as an mu-plugin thanks to the mu-plugins autoloader.

Documentations

License

MIT © Elli & Friends