Skip to content

3.0.0 Release Candidate 2

Pre-release
Pre-release
Compare
Choose a tag to compare
@ronalfy ronalfy released this 19 Apr 10:23
· 4 commits to master since this release

This release is a production-ready proof-of-concept for being able to switch between two different "skins" using the same child theme.

The theme uses a conditional theme.json loader to change the skins rather easily without having to dive deep into SASS or anything like that.

Since theme.json is being used, the minimum version of this theme for WordPress is 5.9.0.

You can customize the skins fairly easily. Just modify the appearance.php and theme.json files for each skin. If you need a new skin, I highly recommend just duplicating the base (default) skin.

coaching-pro/
├─ config/
│  ├─ skins/
│  │  ├─ default/
│  │  │  ├─ appearance.php
│  │  │  ├─ theme.json
│  │  ├─ nutrition/
│  │  │  ├─ appearance.php
│  │  │  ├─ theme.json

The theme uses a conditional theme.json switcher. You can find that here:


coaching-pro/
├─ lib/
│  ├─ theme-json-init.php

The skin installation file can be found here: (this sets the skin, wipes old content, sets customizer variables, etc).


coaching-pro/
├─ lib/
│  ├─ skin-install.php

Helper functions for setting up the skin. This must be loaded as early as possible to avoid fatals.


coaching-pro/
├─ lib/
│  ├─ skin-setup.php

Shared On-boarding assets between all skins are located in a shared file:

coaching-pro/
├─ config/
│  ├─ onboarding-shared.php

Main onboarding happens here:

coaching-pro/
├─ config/
│  ├─ onboarding.php

Additional custom onboarding can be further customized by selective skin onboarding tasks.