最近更新的页面
Quick-Start Guide
The first step is always the hardest to take. Now that you’ve made it this far into the Getting S...
Block Variations
The Block Variations API is a powerful feature that allows you to extend any registered blocks. B...
Block Stylesheets
When styling blocks, you should always do so via the theme.json styles property if possible. Thi...
Block Style Variations
Block style variations (block styles, for short) let you create alternate styles for individual b...
Block Patterns (Archived)
This documentation article has now been archived and replaced with the newer Patterns chapter of ...
Feedback
Giving Feedback We welcome suggestions to improve the article, whether it is to add new topics or...
Theme Structure
In the Getting Started chapter, you learned the basics of what a theme is and how to get one up a...
Templates
In block themes, templates are made up of a collection of blocks. You might have a Site Logo bloc...
Main Stylesheet (style.css)
As described in Theme Structure, WordPress requires that all themes include a style.css file. It...
Including Assets
Many block themes do not need to load any assets. For design aspects, specifically, much of this ...
Global Settings and Styles
As you learned in Theme Structure, theme.json is a standard file that WordPress looks for in you...
Custom Functionality (functions.php)
This document will introduce you to the functions.php file. It is one of the optional standard f...
Comment Template
WordPress displays comments in your theme based on the settings and code in the comments.php fil...
Taxonomy Templates
When a visitor clicks on a hyperlink to category, tag or custom taxonomy, WordPress displays a pa...
Post Template Files
There are many template files that WordPress uses to display the Post post type. Any content deal...
Partial and Miscellaneous Template Files
Introduction Not all template files generate the entire content that will be rendered by the brow...
Page Templates
Page templates are a specific type of template file that can be applied to a specific page or gro...
Custom Post Type Template Files
The WordPress theme system supports custom templates for custom post types. Custom templates for ...
Attachment Template Files
Attachments are a special post type that holds information about a file uploaded through the Word...
List of Template Tags
Complete List of Template Tags Template tags files are stored in the wp-includes directory. The ...