A website design for my wife, based off the initial profix theme used.
I originally avoided building out her website, but after struggling to get her vision to fit within the framework, I decided to rebuild it on a more minimal, (hopefully) best-practices approach.
This theme is a combination experiment and first use-case of building a Wordpress theme using
- Timber/Twig
- Bootstrap
- Advanced Custom Fields
- Mobile/non-Javascript-first approach
I will also be hopefully taking the next step of converting this to headless, in due time.
- Node 12.16.1
- PHP 7.x+
- MySQL 5.7+
Currently, the site is using Docker for both local development and (hopefully) production.
- Checkout Repo
- Copy
.env.sample
as.env
and add database credentials.
- If you're using an nginx proxy, add a
VIRTUAL_HOST
entry and value
- Copy
docker/local/docker-compose.yml
to the root of the project. Make necessary changes. - Run
docker-compose up
and the site will (default) be accessible at http://localhost:3030
There are some known issues with the security plugins installed, when working with Docker, locally, with the production database. To resolve:
- log into SQL and search the
wp_options
table. - replace
siteurl
andhome
with your local URL - remove the content from
fs_active_plugins
option - replace the content of
active_plugins
option with:
a:4:{i:0;s:34:"advanced-custom-fields-pro/acf.php";i:1;s:33:"classic-editor/classic-editor.php";i:2;s:36:"contact-form-7/wp-contact-form-7.php";i:3;s:24:"wordpress-seo/wp-seo.php";}
In an effort to keep things as simple as possible, currently only does any development with sass
cd
to theproject/themes/beth-chernes/
folder and runyarn install
If WP_DEBUG
is enabled, .htaccess cache policy and Google Analytics will be disabled.
$ make watch
This will run sass watch
on the correct folder (project/themes/beth-chernes/assets/scss
)