Bird
0
0

Which line must be included in a child theme's style.css to link it to its parent theme?

easy📝 Syntax Q12 of 15
Wordpress - Theme Structure and Basics
Which line must be included in a child theme's style.css to link it to its parent theme?
ATemplate: parent-theme-folder-name
BParent: parent-theme-folder-name
CTheme: parent-theme-folder-name
DImport: parent-theme-folder-name
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct header line

    The child theme's style.css must have a Template line naming the parent theme folder.
  2. Step 2: Eliminate wrong options

    Options A, B, and D use incorrect keywords not recognized by WordPress.
  3. Final Answer:

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

    Child theme links parent with Template line [OK]
Quick Trick: Look for 'Template' line in style.css header [OK]
Common Mistakes:
  • Using 'Parent' instead of 'Template'
  • Confusing 'Theme' or 'Import' as header lines
  • Omitting the Template line entirely

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes