Skip to content

How to Build a WordPress Theme in WordPress Playground #2193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

karthick-murugan
Copy link
Contributor

Fixes #1257

This PR adds a new documentation page that explains how to build a WordPress theme using WordPress Playground. The guide is aimed at theme developers and contributors looking for a fast, browser-based workflow to build, test, and share themes without needing a local setup.

✅ What’s Included

  • How to create a new Playground site (locally or in the browser)
  • How to preinstall development tools like Create Block Theme, Gutenberg, and Theme Check
  • Detailed steps to:
    • 🚀 Install a starter theme (via GitHub or ZIP)
    • 📥 Import demo content
    • 🔧 Build and customize using block tools
    • 📤 Export themes (ZIP & GitHub)
    • 🔁 Re-import/export for review and iteration
    • 🌐 Load themes from GitHub pull requests


# How to Build a WordPress Theme in WordPress Playground

WordPress Playground is a powerful tool that lets you build, preview, and export WordPress themes—all in your browser or locally via `wp-now`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use Playground CLI in examples because that's the tool we are focused on.

Copy link
Collaborator

@bgrgicak bgrgicak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this docs page fit in with the existing theme development section?

@bgrgicak bgrgicak requested a review from bph April 18, 2025 05:26
@karthick-murugan
Copy link
Contributor Author

How does this docs page fit in with the existing theme development section?

@bgrgicak May be we can enhance the theme development section with our new page content? More insights will be helpful

@bgrgicak
Copy link
Collaborator

This could become a Block theme development using the Playground Website section on the existing page.

Regarding the content you created, you were precise in explaining how to configure Playground, which is nice and makes it clear for the user. With Playground, we can take it a step further and replace these setup instructions with a Playground link that contains a Blueprint, so users can have a Playground ready to go in one click. 🙂

@karthick-murugan
Copy link
Contributor Author

karthick-murugan commented Apr 18, 2025

This could become a Block theme development using the Playground Website section on the existing page.

Regarding the content you created, you were precise in explaining how to configure Playground, which is nice and makes it clear for the user. With Playground, we can take it a step further and replace these setup instructions with a Playground link that contains a Blueprint, so users can have a Playground ready to go in one click. 🙂

Out of the 8 steps which I have added, what are all the points that can be removed and replaced?

Also adding this json link ( https://playground.wordpress.net/?blueprint=https%3A%2F%2Fgithub.com%2Fwordpress%2Fblueprints%2Fblob%2Ftrunk%2Fblueprints%2Fcreate-block-theme%2Fblueprint.json ) to playground does not activate the "create block theme" in playground. What mistake i am doing here?

cc @bph

@bph
Copy link
Collaborator

bph commented May 6, 2025

Also adding this json link ( https://playground.wordpress.net/?blueprint=https%3A%2F%2Fgithub.com%2Fwordpress%2Fblueprints%2Fblob%2Ftrunk%2Fblueprints%2Fcreate-block-theme%2Fblueprint.json ) to playground does not activate the "create block theme" in playground. What mistake i am doing here?

@karthick-murugan two things:

https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/WordPress/blueprints/refs/heads/trunk/blueprints/create-block-theme/blueprint.json

Will work. Try it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Inbox
Development

Successfully merging this pull request may close these issues.

Docs: How to build a WordPress theme in WordPress Playground?
3 participants