WordPress Theme Structure

The files included in the theme adhere to the WordPress Template Hierarchy.

The files included in this blank theme are:

  • 404.php
  • archive.php
  • comments.php
  • footer.php
  • functions.php
  • header.php
  • index.php
  • page.php
  • screenshot.php
  • search.php
  • searchform.php
  • sidebar.php
  • single.php
  • style.css

To make editing styles easier, we have used css/main.css as our main stylesheet, rather than style.css. For responsive websites, we have moved desktop, tablet and mobile-specific styles to css/desktop.csscss/tablet.css and css/mobile.css respectively. There is also a css/admin.css stylesheet for admin specific styles.

The code for the author information box can be found in inc/author-box.php and the post meta information can be found in inc/meta.phpinc/functions/page-nav.php contains the blogPagination(); function, which can be found in post archives. inc/functions/sidebars.php calls the blog and footer sidebars, and both files are called by functions.php.