Project Type: WordPress Reference

Template Parts

Complete reference for templateParts in theme.json. Overview The templateParts array registers reusable template sections like headers, footers, and sidebars. { "templateParts": [ { "name": "header", "area": "header", "title": "Header" },...

theme.json

Global settings and styles configuration for WordPress block themes. Since: 5.8.0 Current Schema Version: 3 Source: wp-includes/class-wp-theme-json.php Purpose theme.json provides a centralized way to: Define design tokens (colors, fonts, spacing)...

WP_Theme_JSON & WP_Theme_JSON_Resolver Reference

These classes handle the processing of theme.json configuration files, providing a structured way to manage global styles and settings. WP_Theme_JSON Class Encapsulates processing of structures that adhere to the theme.json...

WP_Theme Class Reference

The WP_Theme class encapsulates theme data and provides methods for accessing theme information, files, and configuration. Class Overview final class WP_Theme implements ArrayAccess { // Properties public bool $update =...

theme.json Schema Overview

The theme.json file is WordPress's unified configuration system for block themes, controlling global styles, editor settings, and theme behavior. File Location theme-root/ ├── theme.json # Theme configuration ├── styles/ #...

Per-Block Settings

Complete reference for settings.blocks in theme.json. Overview The settings.blocks object allows you to override global settings for specific blocks. { "settings": { "color": { /* global color settings */ },...

Color Settings

Complete reference for settings.color in theme.json. Overview { "settings": { "color": { "background": true, "custom": true, "customDuotone": true, "customGradient": true, "defaultDuotone": true, "defaultGradients": true, "defaultPalette": true, "duotone": [], "gradients": [],...

Layout Settings

Complete reference for settings.layout in theme.json. Overview { "settings": { "layout": { "contentSize": "650px", "wideSize": "1200px", "allowEditing": true, "allowCustomContentAndWideSize": true } } } Layout Widths contentSize The default maximum width...

Other Settings

Complete reference for border, shadow, dimensions, position, background, appearance tools, custom properties, and other settings. appearanceTools Meta-setting that enables multiple design tools at once. { "settings": { "appearanceTools": true }...

Spacing Settings

Complete reference for settings.spacing in theme.json. Overview { "settings": { "spacing": { "blockGap": null, "customSpacingSize": true, "defaultSpacingSizes": true, "margin": false, "padding": false, "spacingSizes": [], "spacingScale": {}, "units": ["px", "em", "rem",...

← Back to Chubes.net