Simple WordPress theme created from _s and highly modified for simplicity.
- assets - CSS and javascript files
- js - Location for all Javascript related to this theme.
- css - Location for 3rd-Party CSS used by this theme.
- includes - WordPress hooks and other PHP functions and classes used by this theme.
- page-templates - Location of templates that may be used by the Page post type.
- partials - Templates that represent the interior content of a page/post.
| File | Description |
|---|---|
style.css |
Contains theme details (meta data) and the main site css. |
header.php |
Default template for the beginning of the HTML document. Normally includes the site header nad main navigational menu. |
footer.php |
Default template for the end of the HTML document. Normally includes a copyright date and some additional site information. |
sidebar.php |
Default wrapper template for sidebar widgets. |
These templates define the theme layout for different types of pages throughout the site.
| File | Description |
|---|---|
404.php |
Page not found - shown when the requested URL is not found within WordPress. |
archive.php |
Wrapper for a list of posts when viewing a category or tag. |
comments.php |
Template that wraps comment output and provides the comment form. |
front-page.php |
Template for the site's home page. |
page.php |
Wrapper template for an individual Page. |
search.php |
Wrapper for a list of search results. |
single.php |
Wrapper for an individual content of a custom post_type. |
single-post.php |
Wrapper for an individual Post. |
index.php |
(empty)The final fall-back when no appropriate template is found. Since we have covered the main template hierarchy with other files, this has been intentionally left blank. |
More more information of additional template files, review the Template Hierarchy.
In WordPress the "Page" post_type is special. Each Page can choose its own template explicitly. You can place custom page templates in the page-templates folder.
| File | Description |
|---|---|
page-templates/page-no-sidebars.php |
Like page.php, but this template has no sidebar. Used as an example for creating admin-selectable templates for Pages. |
These templates are used to output the actual content.
| File | Description |
|---|---|
partials/content.php |
Default content template used when a more appropriate one can't be found. |
partials/content-no-results.php |
Template used when no posts are found for the page. |
partials/content-page.php |
Template used to display the content of a Page. |
partials/content-post.php |
Template used to display the content of a Post. |
partials/content-search.php |
Template used to display a single search result in a list of search results. |
partials/entry-meta.php |
Template for post date, time, and author info |
partials/entry-footer.php |
Template for common footer data. |
These patterns can be used to create more-specific templates.
| File | Description |
|---|---|
partials/content-{post_type}.php |
Like content.php, but this template handles content for a custom post_type. Example: partials/content-gallery_item.php |
partials/content-post-{post_format}.php |
Like content-post.php, but this template is for a specific post_format. Example: partials/content-post-video.php |
partials/entry-footer-{post_type}.php |
Like entry-footer.php, but this template is for a specific post_type. Example: partials/entry-footer-gallery_item.php |
partials/entry-meta-{post_type}.php |
Like entry-meta.php, but this template is for a specific post_type. Example: entry-meta-gallery_item.php |
| File | Description |
|---|---|
functions.php |
Used to load other files from the includes folder. |
includes/assets.php |
Hooks related to assets and serving them. |
includes/config.php |
Hooks this theme uses to initialize itself. |
includes/sidebars.php |
Hooks that register and alter theme sidebars and widgets. |
includes/utilities.php |
Custom functions used by the theme. |