Skip to content
KnowledgeCity

WordPress Advanced: Advanced Themes

Learn how to use HTML, JSON, and the site editor to create a custom block theme
Preview the first lesson free — get full access to all 6 lessons.
Course: On-Demand
Advanced Provider Chrissy Rey  6 Lessons ·  1h 2m  in Arabic, English 

Course Description

WordPress has two types of themes: classic and block. While classic themes are made up of PHP and CSS files, block themes use HTML files and JSON files. Block theme HTML files are broken up into templates and template parts, and when combined with settings and styles in JSON files, the block theme can control the appearance of a WordPress website. Knowing how to create the HTML and JSON files necessary to create a block theme are important skills for a WordPress developer.

In this course, you will learn how to use HTML, JSON, and the site editor to create a block theme. We will explore the files needed to create a block theme, templates and template parts, and a theme.json file for a block theme. We will also add custom fonts and global style variations to the theme.json file. By the end of this course, you will be able to create a custom block theme.

What You'll Learn

  • Identify the anatomy and file format of a WordPress block theme
  • Create and edit templates and template parts using HTML files
  • Configure the theme.json file to define settings, styles, and other block theme elements
  • Add custom fonts to a block theme via the theme.json file
  • Create global style variations for a block theme
  • Build a custom block theme using HTML, JSON, and the site editor

Key Takeaways

  • WordPress supports two types of themes: classic themes built from PHP and CSS files, and block themes built from HTML and JSON files.
  • Block theme HTML files are broken up into templates and template parts.
  • When combined with settings and styles in JSON files, a block theme can control the appearance of a WordPress website.
  • The theme.json file is used to identify settings, styles, and other elements for a block theme, and can include custom fonts and global style variations.
  • Knowing how to create the HTML and JSON files needed for a block theme is an important skill for a WordPress developer.

Frequently Asked Questions

Who is this course for?

It is for WordPress developers who want to learn how to create custom block themes, as creating the HTML and JSON files for a block theme is described as an important skill for a WordPress developer.

What will I be able to do by the end of the course?

By the end of the course, you will be able to create a custom block theme using HTML, JSON, and the site editor.

What topics does this course cover?

The course covers the anatomy of a block theme, the files needed to create a block theme, templates and template parts, the theme.json file, adding custom fonts, and creating global style variations.

What is the difference between classic and block themes covered in this course?

Classic themes are made up of PHP and CSS files, while block themes use HTML files (broken into templates and template parts) and JSON files for settings and styles.