WordPress / WordPress/Learn

Online Workshop: Adding theme.json to classic themes

Open
#2,831 2 comments 0 reactions 1 assignee View on GitHub

@cynthianorman is already working on this.

Since Aug 7, 2024.

[Content] Experienced Author
Dominant language
PHP
Stars
333
Forks
127
Avg merge
1d 7h
Merged PRs (30d)
11

Description

Details

  • Content type: Online Workshop
  • Content title: Adding theme.json to classic themes
  • Topic description:

Do you or a client have a site using a classic theme? You may want to consider adding a theme.json file. Your project’s budget or lack of time might be preventing you from tackling a complete conversion of your classic theme to a block theme. By adding a theme.json file, you can simplify and streamline your Editor's options and you will quickly see the benefits.

You might be looking to gain control of global settings and styles so you can create less overwhelm and confusion with too many user options in the Editor. For example, you could choose to remove the ability to select custom colors or the default color palette from WordPress core. Or, you may want to create a website with more consistent visual elements and maintain branding. For example, you could choose to disable color support for the heading block.

  • Audience (User, Developer, Designer, Contributor, etc.): Theme Developer
  • Experience Level (Beginner, Intermediate, Advanced, Any): Intermediate

Learning Objectives

With this workshop, we will take a classic theme and walk you through the process of adding a theme.json file. We will also take a brief look at the current theme.json file that ships with WordPress core. At the end, we’ll have an open discussion on converting classic themes to either hybrid or block themes.

Related Resources and Other Notes

Automation Code

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.