1
1
# Create React WP Theme <!-- omit in toc -->
2
2
3
- ` *UPDATED* to support create-react-app v3.0 .1 `
3
+ ` *UPDATED* to support create-react-app v3.1 .1 `
4
4
5
5
The intention of this project is to maintain a set of custom ` react-scripts ` that will allow you to
6
6
create React WordPress themes as easily as ` create-react-app ` allows other devs to create their apps.
@@ -19,7 +19,7 @@ Check it out:
19
19
## Readme Contents <!-- omit in toc -->
20
20
For more details check out the rest of this document.
21
21
22
- - [ Usage ] ( #usage )
22
+ - [ Creating a New Theme ] ( #creating-a-new-theme )
23
23
- [ Updating Existing Themes] ( #updating-existing-themes )
24
24
- [ Developing Your Theme] ( #developing-your-theme )
25
25
- [ React Tutorials] ( #react-tutorials )
@@ -32,7 +32,7 @@ For more details check out the rest of this document.
32
32
- [ Acknowledgements] ( #acknowledgements )
33
33
- [ License] ( #license )
34
34
35
- ## Usage
35
+ ## Creating a New Theme
36
36
37
37
To create a WordPress theme using the ` create-react-wptheme ` , follow these steps.
38
38
@@ -159,6 +159,11 @@ Here's an example showing which folder to deploy to your server:
159
159
- react-src
160
160
- !READY_TO_DEPLOY!.txt
161
161
162
+ If you need to continue developing your theme, simply:
163
+ - ` cd react-src `
164
+ - ` npm run start `
165
+
166
+ And all your theme files will reappear.
162
167
163
168
### Dealing With Differing Paths Between DEV and PROD
164
169
@@ -171,7 +176,7 @@ For example:
171
176
172
177
- Your WordPress dev server is running at http<nolink >://localhost/wordpress
173
178
- the homepage setting in your main package.json file will probably work just fine.
174
- - The homepage line in your main package.json be something like: ` "homepage": "/wordpress/wp-content/themes/<your theme's folder name>" `
179
+ - The homepage line in your main package.json will be something like: ` "homepage": "/wordpress/wp-content/themes/<your theme's folder name>" `
175
180
- But you know that your production server runs WordPress from the root: http<nolink >://mycoolblog.com/
176
181
- In this case you want to remove the ` /wordpress ` part, so set the "homepage" line in your ` user.prod.json ` file to:
177
182
` "homepage": "/wp-content/themes/<your theme's folder name>" `
0 commit comments