A Wordpress theme based on the Arctic and Aurora Borealis. Used by arcticdata.io
- install docker
- follow instructions at https://developer.wordpress.org/block-editor/reference-guides/packages/packages-env/ to install
wp-env
package. - Make sure you're working directory is the root of this repo
- run
wp-env start
- Open http://localhost:8888 in your browser to see the Wordpress site.
- Login to the admin dashboard at http://localhost:8888/wp-admin/ with username
admin
and passwordpassword
To stop the server run wp-env stop
To start the server again later run wp-env start
- go to https://arcticdata.io/wp-admin/
- go to Tools > Export
- Select "All content" and click "Download Export File"
- Save the resulting xml file on your machine
- With you local wp-env server running, go to http://localhost:8888/wp-admin/
- Go to Tools > Import
- Select "WordPress" from the list of importers (you may need to install the WordPress importer plugin first)
- Upload the xml file you downloaded in step 4
- Assign the posts to an existing user (e.g. admin) and check the box to download and import file attachments
- Click "Submit" to start the import process.
It will take a long time to download all of the media files. You can bypass this step if you want by unchecking the "Download and import file attachments" box in step 9, but your local site will not have any images.
If you ever need to clear this content and start over, you can reset your wp-env environment by running wp-env destroy
followed by wp-env start
. This will delete all content and settings and give you a fresh Wordpress install.
- ssh into the server running wordpress (see https://devdocs.nceas.ucsb.edu/docs/our-projects/adc/)
- Export the database using
wp export --dir=.
(you may need to install the wp cli tool first) - Copy the resulting xml file to your local machine
- Make sure you have committed and pushed all changes to the theme in this repo
- ssh into the server running wordpress and navigate to the themes directory
- Clone this repo or pull the latest changes if you have already cloned it
- Copy the contents of the
theme
directory in this repo towp-content/themes/aurora
in the Wordpress installation - Go to the Wordpress admin dashboard and navigate to Appearance > Themes
- Activate the Aurora theme if it is not already activated
- Edit the Sass files in /theme/library/scss
- Run the Sass compiler to create the finished product, the
style.css
CSS file:Thesass --watch theme/library/scss/style.scss:theme/style.css
--watch
flag will tell Sass to compile after every change to the .scss files. - The
style.css
file can be updated in Wordpress by copying the file towp-content/themes/aurora
in the Wordpress installation.
Learn more about Sass using the Sass guide: https://sass-lang.com/guide