Skip to content

Commit d79b62b

Browse files
author
Issac Trotts
committed
Add a section about installing themes.
1 parent 0eb8744 commit d79b62b

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

appengine/standard/wordpress/README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ gcloud sql databases create ${db_name?} --instance=${db_instance?}
4141

4242
8. Create and deploy the App Engine app:
4343
```sh
44-
app=[DIR WHERE YOU WANT TO CREATE YOUR APP]
44+
app=[FULL PATH TO DIR WHERE YOU WANT TO CREATE YOUR APP]
4545
mkdir -p ${app?}
4646
cd ${app?}
4747
ln -s ${aewp?} aewp
@@ -70,6 +70,26 @@ WordPress site.
7070

7171
Enjoy your WordPress app!
7272

73+
## Installing themes
74+
It does not work to install themes from the WordPress admin UI because the php72 runtime
75+
does not include FTP. It's fairly easy to install them from the command line though:
76+
77+
1. Go to https://wordpress.org/themes in your browser and click a theme you'd like to install.
78+
2. Right-click the Download button and choose "Copy link address".
79+
3. In the terminal:
80+
```
81+
url=[PASTE THE URL]
82+
cd ${app?}/wordpress/wp-content/themes
83+
name=$(basename ${url})
84+
curl ${url?} >${name?}
85+
unzip ${name?}
86+
cd ../../
87+
gcloud app deploy
88+
```
89+
4. Go to the admin UI of your WordPress site.
90+
5. Click `Appearance | Themes` in the menu on the left.
91+
6. Click `Activate` or `Live Preview` on your new theme.
92+
7393
## Updating
7494
When a new version of WordPress becomes available, you can update your app to use it
7595
like this:
@@ -79,7 +99,7 @@ aewp/update-wordpress
7999
cd wordpress
80100
gcloud app deploy
81101
```
82-
Updating from within the WordPress admin console will not work because the php72
102+
Updating from within the WordPress admin UI will not work because the php72
83103
runtime has a mostly read-only file system.
84104

85105
[bash]: https://www.gnu.org/software/bash/

0 commit comments

Comments
 (0)