• Hey all. I have what may be a no-brainer.

    By default, the way WP themes are built is that there are separate header.php, sidebar.php, comments.php, footer.php etc files in a theme. And for good reason for lots of people.

    However, does putting them all into one file and not loading them separately cause less stress on the webserver, as it them loads a single *.php file instead of 4-5 smaller every time a user visits a new page?

    Less queries, less stress?

    I may have totally misunderstood how this affects the under-the-hood of things, so wanted to asks someone who’s smarter at this than me.

    Thanks.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Single template file vs calling header/footer etc separately — less stress?’ is closed to new replies.