
WordPress Theme Development
Low Riskby @sickn33Verified Source
4.3424 installsv1.0.0Updated May 25, 2026
About
WordPress theme development workflow covering theme architecture, template hierarchy, custom post types, block editor support, responsive design, and WordPress 7.0 features: DataViews, Pattern Editing, Navigation Overlays, and admin refresh.
name: wordpress-theme-development description: "WordPress theme development workflow covering theme architecture, template hierarchy, custom post types, block editor support, responsive design, and WordPress 7.0 features: DataViews, Pattern Editing, Navigation Overlays, and admin refresh." category: granular-workflow-bundle risk: safe source: personal date_added: "2026-02-27"
WordPress Theme Development Workflow
Overview
Specialized workflow for creating custom WordPress themes from scratch, including modern block editor (Gutenberg) support, template hierarchy, responsive design, and WordPress 7.0 enhancements.
WordPress 7.0 Theme Features
-
Admin Refresh
- New default color scheme
- View transitions between admin screens
- Modern typography and spacing
-
Pattern Editing
- ContentOnly mode defaults for unsynced patterns
disableContentOnlyForUnsyncedPatternssetting- Per-block instance custom CSS
-
Navigation Overlays
- Customizable navigation overlays
- Improved mobile navigation
-
New Blocks
- Icon block
- Breadcrumbs block with filters
- Responsive grid block
-
Theme.json Enhancements
- Pseudo-element support
- Block-defined feature selectors honored
- Enhanced custom CSS
-
Iframed Editor
- Block API v3+ enables iframed post editor
- Full enforcement in 7.1, opt-in in 7.0
When to Use This Workflow
Use this workflow when:
- Creating custom WordPress themes
- Converting designs to WordPress themes
- Adding block editor support
- Implementing custom post types
- Building child themes
- Implementing WordPress 7.0 design features
Workflow Phases
Phase 1: Theme Setup
Skills to Invoke
app-builder- Project scaffoldingfrontend-developer- Frontend development
Actions
- Create theme directory structure
- Set up style.css with theme header
- Create functions.php
- Configure theme support
- Set up enqueue scripts/styles
WordPress 7.0 Theme Header
/*
Theme Name: My Custom Theme
Theme URI: https://example.com
Author: Developer Name
Author URI: https://example.com
Description: A WordPress 7.0 compatible theme with modern design
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-custom-theme
Tags: block-patterns, block-styles, editor-style, wide-blocks
*/
Copy-Paste Prompts
Use @app-builder to scaffold a new WordPress theme project
Phase 2: Template Hierarchy
Skills to Invoke
frontend-developer- Template development
Actions
- Create index.php (fallback template)
- Implement header.php and footer.php
- Create single.php for posts
- Create page.php for pages
- Add archive.php for archives
- Implement search.php and 404.php
WordPress 7.0 Template Considerations
- Test with iframed editor
- Verify view transitions work
- Check new admin color scheme compatibility
Copy-Paste Prompts
Use @frontend-developer to create WordPress template files
Phase 3: Theme Functions
Skills to Invoke
backend-dev-guidelines- Backend patterns
Actions
- Register navigation menus
- Add theme support (thumbnails, RSS, etc.)
- Register widget areas
- Create custom template tags
- Implement helper functions
WordPress 7.0 theme.json Configuration
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 3,
"settings": {
"appearanceTools": true,
"layout": {
"contentSize": "1200px",
"wideSize": "1400px"
},
"background": {
"backgroundImage": true
},
"typography": {
"fontFamilies": true,
"fontSizes": true
},
"spacing": {
"margin": true,
"padding": true
},
"blocks": {
"core/heading": {
"typography": {
"fontSizes": ["24px", "32px", "48px"]
}
}
}
},
"styles": {
"color": {
"background": "#ffffff",
"text": "#1a1a1a"
},
"elements": {
"link": {
"color": {
"text": "#0066cc"
}
}
}
},
"customTemplates": [
{
"name": "page-home",
"title": "Homepage",
"postTypes": ["page"]
}
],
"templateParts": [
{
"name": "header",
"title": "Header",
"area": "header"
}
]
}
Copy-Paste Prompts
Use @backend-dev-guidelines to create theme functions
Phase 4: Custom Post Types
Skills to Invoke
wordpress-penetration-testing- WordPress patterns
Actions
- Register custom post types
- Create custom taxonomies
- Add custom meta boxes
- Implement custom fields
- Create archive templates
RTC-Compatible CPT Registration
register_post_type('portfolio', [
'labels' => [
'name' => __('Portfolio', 'my-theme'),
'singular_name' => __('Portfolio Item', 'my-theme')
],
'public' =>
Compatible Tools
Claude CodeCursor
Tags
Frontend