Bird
0
0

A developer edited header.php but the changes do not appear on the site. What is the most likely reason?

medium📝 Debug Q7 of 15
Wordpress - Theme Structure and Basics
A developer edited header.php but the changes do not appear on the site. What is the most likely reason?
AThe footer.php file overrides header.php
BThe header.php file is not used by WordPress
CThe site is using a child theme and header.php was edited in the parent theme
DThe functions.php file disables header.php
Step-by-Step Solution
Solution:
  1. Step 1: Understand child vs parent themes

    If using a child theme, WordPress loads files from child theme folder first.
  2. Step 2: Reason about file editing location

    Editing header.php in parent theme won't affect site if child theme has its own header.php or none.
  3. Final Answer:

    The site is using a child theme and header.php was edited in the parent theme -> Option C
  4. Quick Check:

    Child theme overrides parent files = The site is using a child theme and header.php was edited in the parent theme [OK]
Quick Trick: Edit files in active theme folder (child or parent) [OK]
Common Mistakes:
  • Thinking footer.php overrides header.php
  • Believing header.php is unused
  • Assuming functions.php disables header.php

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes