本文档介绍 WordPress 块模板系统,涵盖自定义模板和模板部件的构建方法,以及如何将它们集成到主题中。模板是构建网站的核心概念,决定了内容在浏览器中的呈现结构,对主题开发至关重要。
Welcome to the Templates documentation. In this chapter you will learn how the WordPress block template system works, how to build custom templates and parts, and include them in your theme.
Templates are one of the core concepts of building websites, representing the underlying structure that presents your content in the browser. In many ways, they are the most important feature of developing WordPress themes.
Use the below links to find the topic you are looking for in this chapter. Each section of the chapter is set up to offer a straightforward learning path toward learning how to build templates for those building their first theme. But if you are already familiar with the foundational concepts, feel free to skip ahead to the topic you want to learn more about.