gutenberg-docs/docs/how-to-guides/themes
2026-03-27 01:08:43 +08:00
..
global-settings-and-styles.md docs: add 183 translated files 2026-03-27 01:08:43 +08:00
README.md docs: add 183 translated files 2026-03-27 01:08:43 +08:00
theme-support.md docs: add 183 translated files 2026-03-27 01:08:43 +08:00

title post_status comment_status taxonomy
主题 publish open
category post_tag
gutenberg-docs
Themes
How To Guides
Repos

主题

区块编辑器为主题设计师和开发者提供了多种交互选项,包括主题定义的颜色设置、字体大小控制等。

主题类型

经典主题

在区块编辑器的术语中,这是指任何使用传统的 .php 文件格式定义模板,并且在 /block-templates/templates 文件夹中没有 index.html 格式模板的主题。经典主题能够通过主题支持或包含 theme.json 文件,为区块编辑器和区块内容提供配置和样式选项。主题不必是区块主题,也能利用 theme.json 文件提供的灵活性。

区块主题

这是指任何至少在 /block-templates/templates 文件夹中拥有 index.html 格式模板,并且模板以区块内容标记形式提供的主题。虽然许多区块主题会使用 theme.json 文件来提供配置和样式设置,但 theme.json 并非区块主题的必需项。区块主题的优势在于,区块编辑器可用于编辑网站的所有区域:页眉、页脚、侧边栏等。

全站编辑 (FSE)

并没有特定的 FSE 主题类型。在 WordPress > 5.9 中,任何区块主题(即在 /block-templates/templates 文件夹中拥有 index.html 格式模板的主题)都会启用 FSE。

目录