Section 1: Lab: WordPress 7.1 and Theme Development Tools
- Classic, block and hybrid themes compared, and what is new in WordPress 7.0 and 7.1
- Set up with XAMPP, wp-env or WordPress Playground on PHP 8.3 or later
- Configure VS Code and import sample content for testing themes
- Lab: install WordPress 7.1 ready for the whole course
Section 2: Block Theme Structure and the Template Hierarchy
- Required files: style.css with the theme header, and templates/index.html
- What the templates, parts, patterns and styles folders are for
- The template hierarchy: index, home, single, page, archive, search and 404
- Lab: build a minimal theme that installs and activates
Section 3: Lab: theme.json Settings
- The structure of theme.json version 3: version, settings, styles and templateParts
- Colour palettes and font families, including Thai font files bundled with the theme
- Fluid font sizes, the spacing scale and layout with contentSize and wideSize
- Lab: set the theme's colour, font and spacing design tokens
Section 4: Lab: theme.json Styles
- Site-wide styles and element styles such as links, buttons and headings
- Per-block styles, for example Navigation, Quote and Button
- Hover, focus and active states and responsive styles in WordPress 7.1
- Lab: restyle the whole site from a single theme.json file
Section 5: Lab: Templates, Template Parts and the Query Loop
- Create parts/header.html and parts/footer.html with Site Logo and Navigation
- Write templates in block markup and include template parts
- The Query Loop and Post Template for post listings and category pages
- Templates for single, page, archive and 404
- Lab: the home page, single post and post listing of the theme
Section 6: Lab: The Site Editor and Create Block Theme
- Edit templates, template parts and styles in the Site Editor
- User changes stored in the database versus values in the theme files
- Save edits back to the theme files with Create Block Theme
- Lab: design the header in the Site Editor and save it into the theme