858 B
858 B
Roots Theme homepage | Documentation table of contents
Theme wrapper
The theme wrapper functionality is found in lib/wrapper.php. This code comes directly from scribu's theme wrapper post.
base.php in the roots theme top level directory is used to serve all of the templates for your site. In the theme root, the following files are only used to include files in the templates/ directory, which contains all of the theme templates:
index.php(archive page templates) includestemplates/content.phppage.phpincludestemplates/content-page.phpsingle.phpincludestemplates/content-single.php
The Template Hierarchy is traversed as normal before the wrapper is loaded.