Bird
0
0

Why does this style.css metadata block fail to register the theme?

medium📝 Debug Q7 of 15
Wordpress - Theme Structure and Basics
Why does this style.css metadata block fail to register the theme?
/*
Theme Name: Cool Theme
Version: 1.0
Author John Doe
*/
AVersion number format is wrong
BMissing colon after 'Author'
CTheme Name is invalid
DComments are not closed properly
Step-by-Step Solution
Solution:
  1. Step 1: Review metadata syntax

    Each metadata line must have a colon separating the field name and value.
  2. Step 2: Spot missing colon in Author line

    The line Author John Doe lacks the colon, so WordPress ignores or misreads it.
  3. Final Answer:

    Missing colon after 'Author' -> Option B
  4. Quick Check:

    Colon missing after Author causes metadata error [OK]
Quick Trick: Check colons after every metadata field name [OK]
Common Mistakes:
  • Forgetting colon after Author
  • Assuming Version format is wrong
  • Thinking comment syntax is incorrect

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes