WordPress / Learn

WordPress.org Learn - The canonical source for the code and content behind https://learn.WordPress.org
261 stars 89 forks source link

Online Workshop: Adding theme.json to classic themes #2831

Open cynthianorman opened 1 month ago

cynthianorman commented 1 month ago

Details

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.

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

github-actions[bot] commented 1 month ago

Online Workshop Details

Online Workshop Development Checklist

cynthianorman commented 3 weeks ago

https://wordpress.tv/2024/08/21/adding-theme-son-in-classic-themes/