CREATING A FSE CUSTOM THEME
CREATING A FSE CUSTOM THEME
Many things about building a FSE theme are contrary to the standard practice to building a traditional WordPress theme. Crucial files such as functions.php and style.css can be very minimal; folders for parts, patterns, styles, and templates while new are required; templates and template parts (includes) are expressed as HTML rather than PHP; and the complexity of the theme.json file can be intimidating.
There have always been three main paths to a custom presentation in WordPress:
- Selecting a theme that includes expanded customization controls and “page building” capabilities.
- Selecting a theme to use as a “parent” and creating a “child” theme that modifies certain aspects of the parent.
- Creating a bespoke theme that isn’t dependent on any external framework or parent theme.
In traditional WordPress theming most of us have found a baseline starter theme (mine was: https://underscores.me/ ) for this third option which gave a foundation that could be built upon to achieve customized functionality and presentation. FSE themes are structurally different and most of these “old reliable” starting points require significant modification before they are ready for the task – however there are many new alternatives that are ready to go “right out of the box”.
BLOCK THEME GENERATORS
These sites will generate a semi-customized FSE ready starter theme.
- https://them.es/starter-fse/
- https://fullsiteediting.com/block-theme-generator/
- https://themegen-preview.vercel.app/
STARTER BLOCK THEMES
Here are some “lightly styled” FSE themes lend themselves well to child theming and/or as a starting point for a completely bespoke theme.
- https://wordpress.org/themes/blockbase/ <= author: automatic
- https://wordpress.org/themes/frost/ <= author: wp engine
- https://wordpress.org/themes/bricksy/
- https://wordpress.org/themes/starter-fse/
In the standard configuration there is a way to export a modified theme:
- go to the editor
- select any template
- click 3 dots in upper right corner
- select “export” from the flyout menu
This is a bit convoluted, and the result would still require some tweaking in a code editor afterwards – thankfully there is a better way.
CREATE BLOCK THEME PLUGIN:
WordPress itself has created an extremely powerful plugin that can do the following:
- Create a minimalistic FSE theme.
- Export the changes made to styling, templates, template parts and patterns in an active site as a child theme.
- Export the changes made to styling, templates, template parts and patterns in an active site as a cloned theme.
This means that you can now design an entire site in the WordPress editor and then save that entire configuration as a new and independent theme.