A brief history of WordPress theming
default prior to WordPress 1.2
default from WordPress 1.2 until WordPress 3.0
Released: February 1, 2010
Released: May 2011 via Envato
Released: February 13, 2012
Released: December 11, 2012
Released: December 11, 2013
Released: 2014 independently
Released: December 6, 2016
Released: December 6, 2018
Twenty Twenty Three Theme
What are our goals when building a theme?
Portability
Photo by xenia at Morguefile.com
Extensibility
Photo by hotblack at Morguefile.com
Accessibility
Photo by hilarycl at Morguefile.com
Responsivity
Photo by DuBoix at Morguefile.com
Durability
Photo by Garyu3 at Morguefile.com
Speed
Photo by Penywise at Morguefile.com
My goals over time:
- 2010: how do I build a site?
- 2013: how do I build a site professionally?
- 2014: a default to work from
- 2019: a default to work from, but Gutenberg-compatible
- 2020: ideal workflow and theme structures
- 2022: ideal workflow and theme structures for full site editing
Is the goal to write as much custom code as possible?
My theme building process over time:
- 2010 - 2012: Genesis Framework child themes
- 2013: Twenty Twelve child themes
- 2014 - 2018: custom themes built on _s base theme
- 2019 - 2022: custom hybrid themes built on Gutenberg Starter Theme
- 2023 - 2024: Blockbase child themes
- 2025: Variety of parent themes, child themes via Create Block Theme
1. Set defaults through the site editor
2. Determine Content Structure
Defaults
- posts
- pages
- categories
- tags
Custom Structures
- custom post types
- custom taxonomies
- custom fields
3. Make custom mu-plugin to define custom structures
4. Set up content patterns
5. Populate/migrate content
6. Set up template variations
7. Set up header and footer
9. Remove unwanted defaults
10. Add additional configurations/options to theme.json
11. Set up custom block styles
12. Add tooling for compiling CSS and JS
13. Write custom CSS and JavaScript for any customizations overriding defaults
14. Build custom blocks for custom functionality
15. Use block bindings to output custom fields where appropriate in templates
16. Integrate any additional custom functionality
17. Quality assurance testing
Where to put all the things?
Database
- Site Content
- Dashboard Configurations
- Plugin Settings
- Custom CSS
- Customizer Code
Files
- WP Core
- Plugins
- Themes
- Uploads
- WP Config
Code
- themes/yourtheme
- plugins/yourplugin
You need a few environments:
- local
- development
- staging
- production
Keys to theming sanity:
- git (Github or alternative of your choice)
- web host (no comment)
- local environment (I use Local)
- code only in theme
Pay attention to how you/your team works to optimize your theme process for YOU.
Don't forget workflows for custom functionality.
Write code only when you need to.
Open source what you can.