Bird
0
0

You want to create a child theme that inherits styles from its parent. Which metadata field must you add in the child theme's style.css to link it to the parent theme?

hard📝 Application Q15 of 15
Wordpress - Theme Structure and Basics
You want to create a child theme that inherits styles from its parent. Which metadata field must you add in the child theme's style.css to link it to the parent theme?
AInherits: parent-theme-folder-name
BParent: parent-theme-name
CTemplate: parent-theme-folder-name
DDepends-On: parent-theme-name
Step-by-Step Solution
Solution:
  1. Step 1: Understand child theme metadata

    To link a child theme to its parent, WordPress uses the 'Template' field with the parent's folder name.
  2. Step 2: Identify correct field name

    The correct metadata field is 'Template', not 'Parent', 'Inherits', or 'Depends-On'.
  3. Final Answer:

    Template: parent-theme-folder-name -> Option C
  4. Quick Check:

    Child theme uses Template field to link parent [OK]
Quick Trick: Use 'Template' field with parent's folder name [OK]
Common Mistakes:
  • Using 'Parent' instead of 'Template'
  • Confusing theme name with folder name
  • Omitting the Template field in child theme

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes