Bird
0
0

What is wrong with this metadata block in style.css that prevents WordPress from recognizing the theme?

medium📝 Debug Q14 of 15
Wordpress - Theme Structure and Basics
What is wrong with this metadata block in style.css that prevents WordPress from recognizing the theme?
/*
Theme-Name: Cool Theme
Author: John Smith
Version: 2.0
*/
AThe field 'Theme-Name' should be 'Theme Name' without a dash
BThe comment block is missing the closing tag
CThe version number must be numeric only
DAuthor name cannot contain spaces
Step-by-Step Solution
Solution:
  1. Step 1: Check metadata field names

    WordPress requires exact field names like 'Theme Name' with a space, not 'Theme-Name'.
  2. Step 2: Verify comment block correctness

    The comment block is properly opened and closed with /* and */.
  3. Final Answer:

    The field 'Theme-Name' should be 'Theme Name' without a dash -> Option A
  4. Quick Check:

    Field names must match exactly [OK]
Quick Trick: Use exact field names like 'Theme Name' with space [OK]
Common Mistakes:
MISTAKES
  • Using dashes instead of spaces in field names
  • Leaving comment block unclosed
  • Misunderstanding version format rules

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes