Skip to main content
1 of 2
fuxia
  • 107.1k
  • 38
  • 255
  • 459

You need that for child themes. If you have a separate header.php a child theme can use its own header.php and override the parent theme’s file. Plus, header.php and footer.php are used in wp-signup.php.

Another reason is readability: Putting all the code for a theme into just one file gets very messy very fast.

fuxia
  • 107.1k
  • 38
  • 255
  • 459