Before installing or distributing a WordPress theme, your root style.css manifest header and screenshot.png preview must follow official formatting conventions. The CodeToWP WordPress style.css Validator enables theme developers, agencies, and freelancers to audit 11 core header fields and verify PNG screenshot dimensions locally in seconds.
Who the WordPress style.css Validator Is Built For
Missing header metadata such as Theme Name, Version, or a matching Text Domain can prevent WordPress from listing a theme, break translation loading, or trigger warnings during client QA and directory submission reviews. Meanwhile, cropped or mismatched screenshot.png files look blurry inside Appearance > Themes.
Aligned with the WordPress Theme Handbook Main Stylesheet Specification, this WordPress style.css Validator scores your header live and checks screenshot dimensions without uploading files anywhere. Agencies run the WordPress style.css Validator before every client deployment or WordPress.org submission.
Features, Settings & Supported Outputs
- 3 Built-In Header Presets & Drag-and-Drop: Test against Full Theme Handbook Header, Block / FSE Theme Header, or Minimal Valid Header presets, type directly in the editor, or drop a
.cssor.pngfile onto the validator workspace. - 11-Key Weighted Scoring Audit (100 Points Normalized): Checks 6 required fields at 12 points each (
Theme Name,Author,Description,Version,License,Text Domain) and 5 recommended fields at 6 points each (Theme URI,Author URI,Requires at least,Tested up to,Requires PHP). - End-of-Life PHP Version Detection: Flags
Requires PHPvalues below8.1with an EOL warning and deducts half the field’s points while recognizing8.2+as modern secure PHP. - Local PNG Screenshot Inspector & Export: Reads uploaded
.pngimages in browser memory, confirms exact1200 × 900px resolution (pass), accepts alternate4:3aspect ratios with a warning, and exports cleanstyle.cssvia Download or Copy.
Practical Example: Auditing a Starter Header
Sample style.css Input
/*
Theme Name: Acme Block Theme
Theme URI: https://example.com/acme
Author: Acme Studio
Author URI: https://example.com
Description: Lightweight custom WordPress block theme.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.2
License: GNU General Public License v2 or later
Text Domain: acme-block
*/
Expected Audit Result
Compliance Score: 100 / 100
Required Fields: 6 / 6 Present (Theme Name, Author, Description, Version, License, Text Domain)
Recommended: 5 / 5 Present (Requires PHP: 8.2 -> Modern Secure PHP)
Screenshot Target: 1200 x 900 px PNG (4:3 aspect ratio)
Result Explanation: All 11 tracked keys contain non-empty values and Requires PHP: 8.2 meets modern security standards, earning a 100% checklist pass.
Practical Use Cases
- WordPress Theme Developers: Catch missing required metadata or outdated
Requires PHPdeclarations before tagging a theme release. - Frontend Developers: Start from a valid preset header when wiring custom HTML/CSS themes for the first time.
- Agencies: Verify consistent author, licensing, and
screenshot.pngaspect ratios across client deliveries. - Freelancers: Quickly generate and download a clean
style.cssheader when packaging custom child or standalone themes.
Limitations & Compatibility
- Key-Presence Parsing Only: The parser verifies that each header line matches
Key: valuewith non-empty text; it does not enforce CSS comment wrappers (/* ... */), strict semantic version numbers, GPL license URLs, valid URL syntax, or WordPress.orgTags:,License URI:, or child-themeTemplate:headers. - PNG-Only Screenshot Validation & File Size: The image checker validates
.pngfiles (rejecting JPEG/WebP) and checks pixel dimensions (1200 × 900vs4:3); it does not enforce the filenamescreenshot.pngor inspect file byte size limits (< 500KB recommended). - Target Compatibility: Designed for WordPress 6.0–6.7+ themes targeting PHP 8.1–8.3+.
Next Steps & Related CodeToWP Tools
Read our step-by-step guide on Troubleshooting WordPress style.css Header and Screenshot Errors, generate a complete theme package with our WordPress Starter Theme ZIP Generator, register stylesheets via the functions.php Enqueue Generator, or review full packaging standards in our HTML to WordPress Conversion Guide.