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

Unlock the full course today

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

How traditional themes are built

How traditional themes are built - WordPress Tutorial

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

Start my 1-month free trial

How traditional themes are built

- [Instructor] A WordPress theme is used to change the design of a site, including its layout. Themes take the content and data stored by WordPress and display it in the browser. In this lesson I'd like to take a tour of how themes have historically been built for WordPress. And with that context, we can use the rest of this chapter to look at the anatomy of a block-based theme. We're going to start here at the official theme handbook on WordPress.org. And I want to highlight this part that describes what themes are made of? For starters there are only two files required to make a WordPress theme, although I've never seen one so blessedly simple in the wild. And from there, you may see a variety of file types including style, scripts or images, but the main thing you'll see our template files. These are PHP files that contain a mixture of HTML, template tags, and PHP code. Template files are contextual. So for example…

Contents