Getting Comfortable with Full Site Editing Theme Development

Lehigh Valley WordPress Meetup

Beth Soderberg

CEO & Lead Developer, Bethink Studio

@bethsoderberg | beth@bethinkstudio.com | bethink.studio

A brief history of WordPress theming

Classic

default prior to WordPress 1.2

Classic Theme

Default (AKA Kubrick)

default from WordPress 1.2 until WordPress 3.0

Default Theme (Kubrick)

Genesis Framework

Released: February 1, 2010

Twenty Ten

Released: June 17, 2010

Twenty Ten Theme

Advanced Custom Fields

Released: March 28, 2011

WP Bakery

Released: May 2011 via Envato

_s

Released: February 13, 2012

Twenty Twelve

Released: December 11, 2012

Twenty Twelve Theme

Divi

Released: December 11, 2013

Beaver Builder

Released: 2014 independently

Elementor

Released: Summer 2016

Twenty Seventeen

Released: December 6, 2016

Twenty Seventeen Theme

Twenty Nineteen

Released: December 6, 2018

Twenty Nineteen Theme

Seedlet

Released: June 2020

Twenty Twenty Theme

Twenty Twenty One Theme

Twenty Twenty Two Theme

Twenty Twenty Three Theme

Twenty Twenty Four 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

Maintainability

Photo by sideshowmom at Morguefile.com

Durability

Photo by Garyu3 at Morguefile.com

Speed

Photo by Penywise at Morguefile.com

Elegance

Photo by davidpwhelan 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?

Photo by lauramusikanski at Morguefile.com

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

8. Create block theme

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

And so...

Pay attention to how you/your team works to optimize your theme process for YOU.

Don't forget workflows for custom functionality.

Keep documentation.

Write code only when you need to.

Open source what you can.

Keep it simple!

Thank you!

@bethsoderberg

beth@bethinkstudio.com

bethink.studio

Additional Resources