主题手册

Welcome to the WordPress Theme Developer Handbook, your resource for learning all about the exciting world of WordPress themes. 

欢迎来到WordPress主题开发人员手册,这是您学习WordPress主题令人兴奋的世界的资源。

The Theme Developer Handbook is a repository for all things WordPress themes. Whether you’re new to WordPress themes, or you’re an experienced theme developer, you should be able to find the answer to many of your theme-related questions right here.

主题开发手册是WordPress主题的所有内容的存储库。无论您是WordPress主题的新手,还是经验丰富的主题开发人员,您都应该能够在这里找到许多主题相关问题的答案。

In this section, you can learn how to build the classic or block themes. The classic theme is the original theme that primarily uses PHP. The block theme is a newer theme that is built mainly using HTML. The block theme is composed entirely of blocks allowing users to take full advantage of the full site editor.

在本节中,您可以学习如何构建经典主题或块主题。经典主题是主要使用PHP的原始主题。块主题是主要使用HTML构建的较新主题。块主题完全由块组成,允许用户充分利用完整的站点编辑器。

Head over to the Block Editor Handbook if you are interested in learning about the block theme.

如果您有兴趣了解块主题,请参阅块编辑器手册。

Continue reading if you are interested in building the classic theme.

如果您对构建经典主题感兴趣,请继续阅读。

  1. If you’re new to developing WordPress themes, start with section 1, where you can find out what a theme is, learn about WordPress’ licenseset up your development environment, and build your first theme.
  2. Once you’re through the introduction, the Theme Basics section will introduce you to the building blocks of a WordPress theme.
  3. The Theme Functionality section will show you all of the different types of functionality you can make use of in your theme.
  4. If you’re looking to give flexibility and yet protect your users, head over to the Customizer and Security sections
  5. If you’ve got to grips with the basics of themes, check out the Advanced Theme Topics to learn about child themes, best UI practices, theme testing and more.
  6. Once you’ve got your theme ready for the world, the final section will cover releasing your theme, teaching you some best practices for theme distribution, and for getting it ready for the WordPress.org theme directory.

Tip:If you want to learn about block themes go to the Block Editor Handbook.

The WordPress Theme Developer Handbook is created by the WordPress community, for the WordPress community. We are always looking for more contributors; if you’re interested stop by the docs team blog to find out more about getting involved.