page.php in WordPress Themes
Template static pages with page.php and optional custom page templates.
Template static pages with page.php and optional custom page templates.
List posts by category, tag, date, or CPT archives with archive.php.
Customize search results layout and empty-state messaging.
Understand the difference between the site front page and the blog posts index.
Learn how WordPress chooses which template file to load for each request.
Split shared chrome into header and footer templates for every page.
Create header.php with doctype, wp_head, site branding, and primary navigation.
Close the document in footer.php and call wp_footer for scripts.