https://github.com/26b/wp-theme
A WordPress theme starter.
https://github.com/26b/wp-theme
composer php7 wordpress wordpress-theme
Last synced: 2 months ago
JSON representation
A WordPress theme starter.
- Host: GitHub
- URL: https://github.com/26b/wp-theme
- Owner: 26B
- License: gpl-2.0
- Created: 2018-07-12T14:25:51.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-04T12:44:06.000Z (over 7 years ago)
- Last Synced: 2025-10-19T11:56:28.644Z (8 months ago)
- Topics: composer, php7, wordpress, wordpress-theme
- Language: PHP
- Size: 173 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WP-Theme
All you need to start creating a theme for WordPress.
## Getting started
### Find and Replace
This project is a skeleton, so it has a bunch of keys that need to be replaced with values specific to your project.
For these changes, you should use the "Find and Replace" feature of your editor. Later there will be more options to this. Below you can find the table with the keys and their respective description, along with an example for the possible value.
| Key | Description | Example value |
| ------------------------ | ------------------------------------------------------------------- | ------------------------------------- |
| `[vendor_name]` | Your username or company name: no spaces | `26B` |
| `[theme_name]` | | `Foo Bar` |
| `[theme_description]` | Description for the theme | `A WordPress theme starter.` |
| `[theme_url]` | Theme URL | `https://github.com/26B/wp-theme` |
| `[theme_slug]` | Theme slug | `foo-bar` |
| `[initial_version]` | Version to start the theme with | `1.0.0` |
| `[author_name]` | Author name | `Pedro Duarte` |
| `[author_url]` | Author URL | `https://github.com/xipasduarte` |
| `[text_domain]` | Text domain | `foo-bar` |
| `[composer_vendor]` | Your username, company or project name: lowercase and no spaces | `26b` |
| `[composer_name]` | Theme identifier: usually the `[theme_name]` in dash-case | `foo-bar` |
| `[namespace]` | Desired PHP namespace | `26B\WP\Theme\FooBar` |
| `[autoload_psr_4]` | [PSR-4 autoload][1] for `[namespace]` | `26B\\WP\\Theme\\FooBar\\` |
| `[autoload_tests_psr_4]` | [PSR-4 autoload][1] for `[namespace_tests]` | `26B\\WP\\Theme\\FooBar\\Tests\\` |
[1]: https://getcomposer.org/doc/04-schema.md#psr-4
### Run composer
After all of the changes don't forget to run `composer install` to have the dependencies load and the autoload built. (Without this your theme will break.)