Software Development free courses

Master the TrickProfessionalFree

WordPress Block Themes and Plugins

Understand block-theme structure, plugin responsibilities and safe handling of user input.

3 reading lessons · about 30 min ·written by MTT

The idea

Block themes use block markup for templates and template parts. A template defines a page layout, while reusable parts such as a header can appear in many templates. The theme.json file supplies shared settings and styles. Changes saved in the Site Editor may be stored in the database and can override theme files, so distinguish file changes from editor changes during testing.

Worked example

A fictional theme uses templates/index.html for its fallback layout and parts/header.html for navigation. It sets typography and a small color palette in theme.json. Updating the header part changes the shared structure, while a single-page template can customize one page type.

Try it

Sketch a theme file tree with a fallback template, a page template, a header part and theme.json. Describe which file you would change to update shared typography and how you would check for a saved editor override.

Lesson 1 of 3 · About 10 min

Understand a block theme

Check your understanding

Course quiz

Finish the course to unlock the quiz

Complete all 3 lessons and 5 questions open up here. You have 3 to go.

What you will learn

  • Distinguish templates from template parts
  • Choose between theme and plugin responsibilities
  • Explain validation, escaping and permission checks

Before you start

Prerequisites
Basic WordPress familiarity. Some HTML and PHP knowledge helps.
Cost
Free introductory reading lessons, exercises and quiz. Optional third-party tools, hosting or AI subscriptions may cost money.

Original introductory lessons and assessment by Master the Trick. Estimated times include the suggested exercises.