From the course: First Look: WordPress Full-Site Editing

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Structure of a block-based theme

Structure of a block-based theme - WordPress Tutorial

From the course: First Look: WordPress Full-Site Editing

Start my 1-month free trial

Structure of a block-based theme

- [Instructor] For this lesson, we're going to take a look at 2021 blocks or TT1 blocks which is the full site editing version of 2021 theme. I'm going to start here by looking at the source files for this over in GitHub. Right off the bat, you'll see some things that look familiar. For instance, here's the style sheet, here's that index.php, and the ubiquitous functions.php that's used to enqueue scripts, et cetera. But notice the absence of all the template files that we saw with the 2021 theme. Instead, we've got this block templates folder and this block template parts folder. Block templates are HTML files that are the block-based counterpart to traditional php template files. And block template parts are the block-based counterpart to traditional php template partials. Both block templates and block template parts, if you were to open up one of these files, you'll see that there are a collection of blocks and this…

Contents