Build classic and block WordPress themes from scratch: the template hierarchy, The Loop, the_title() and the_content(), template parts, menus, the Customizer, child themes and theme.json.
Lessons
Before a theme reaches a real site it should pass a checklist of content, accessibility, code-standard and performance tests — the same checks the WordPress.org theme review team runs on every submission.
alt text, headings follow a logical order, and links make sense out of context — no "click here".# Install the WordPress coding standards for PHP_CodeSniffer
composer require --dev wp-coding-standards/wpcs dealerdirect/phpcodesniffer-composer-installer
# Check the whole theme
vendor/bin/phpcs --standard=WordPress --extensions=php .WP_DEBUG on, wp-content/debug.log must stay empty while you browse every template.defer.Ship only what the theme needs. Development files stay behind:
# From wp-content/themes/
zip -r gdc-starter-1.0.0.zip gdc-starter \
-x "gdc-starter/node_modules/*" \
-x "gdc-starter/vendor/*" \
-x "gdc-starter/.git/*" \
-x "*.DS_Store"Before zipping, bump Version in style.css, regenerate the .pot file and update the changelog.
readme.txt with a description, changelog, and copyright and licence details for every bundled image and font — all must be GPL-compatible.screenshot.png is 1200 × 900 and shows the theme itself.You have built a complete classic theme and a block theme from scratch. The natural next step is the WordPress Plugin Development path: themes present content, and plugins add the features — custom post types, settings pages, shortcodes and REST endpoints — that your themes will display.
In accordance with Section 6 & Section 7 of the DPDP Act 2023, third-party analytics and marketing trackers are strictly gated behind your affirmative consent. You may withdraw consent at any time under Section 6(4).
Essential for session authentication (ci_session), Cross-Site Request Forgery security (csrf_cookie_name), and Cloudflare DDoS/bot prevention. Cannot be disabled.
Gated under DPDP Section 7. Allows Google Analytics 4 (Google Consent Mode v2) to measure aggregate, anonymized tool usage.
Enables browser local storage to preserve your theme selection (dark/light mode) and code editor layout between visits.
Used to display developer sponsorships and native tool partner notices.