WordPress / WordPress/Documentation-Issue-Tracker

Comma in JSON example code missing

Open
#2,003 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

developer documentation (DevHub) themes
Dominant language
Shell
Stars
109
Forks
73
PR merge metrics
No merged PRs in 30d

Description

Issue Description

There is a comma missing in the example code of the "Blocks" section of the theme handbook.

URL of the Page with the Issue

https://developer.wordpress.org/themes/global-settings-and-styles/settings/blocks/

Section of Page with the issue

Blocks

Why is this a problem?

Without this comma the color palettes won't be shown correctly.

Suggested Fix

Just add a comma between color and blocks within the example JSON:

{ "version": 2, "settings": { "color": { "palette": [ { "color": "#0284c7", "name": "Base", "slug": "base" }, { "color": "#ffffff", "name": "Contrast", "slug": "contrast" } ] }, "blocks": { "core/cover": { "color": { "palette": [ { "color": "#ea580c", "name": "Base", "slug": "base" }, { "color": "#fff7ed", "name": "Contrast", "slug": "contrast" } ] } } } } }

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the linked theme handbook page and navigate to the Blocks section. Check the example JSON around the color and blocks settings, add the missing comma, and verify that the example is valid JSON and displays the color palettes correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
json
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.