Rename page-custom.php to template-custom.php

This commit is contained in:
Ben Word
2013-04-30 20:51:18 -05:00
parent f0db29b387
commit 553dc1cfb7
5 changed files with 9 additions and 8 deletions

View File

@@ -1,4 +1,5 @@
### HEAD
* Rename page-custom.php to template-custom.php
* Don't warn about unwritable htaccess if that option is disabled
* Add missing collapse class for top navbar
* Add comment template

View File

@@ -29,7 +29,7 @@ If you don't want to use one of the features, either comment out the line or rem
#### Define which pages shouldn't have the sidebar
`roots_display_sidebar()` is used to define which pages shouldn't get the sidebar. By default, the 404, front `front-page.php` and `page-custom.php` templates are full width. If you would like to remove the sidebar from additional pages, add in the appropriate conditional or page template name.
`roots_display_sidebar()` is used to define which pages shouldn't get the sidebar. By default, the 404, front `front-page.php` and `template-custom.php` templates are full width. If you would like to remove the sidebar from additional pages, add in the appropriate conditional or page template name.
### h5bp-htaccess

View File

@@ -65,10 +65,10 @@ A basic Roots theme initially looks like this:
├── functions.php
├── index.php
├── page.php
├── page-custom.php
├── screenshot.png
├── single.php
── style.css
── style.css
└── template-custom.php
```
What follows is a general overview of each major part and how to use them.
@@ -128,10 +128,6 @@ This file is used to serve all of the archive templates.
This file is used to serve the page template.
### page-custom.php
An example of a custom page template. By default, this page is full width and doesn't contain a sidebar as defined in `lib/config.php`'s `roots_sidebar()` function.
### single.php
This file is used to serve the single post template.
@@ -139,3 +135,7 @@ This file is used to serve the single post template.
### style.css
This file is used to tell WordPress that we're a theme. None of the actual CSS is contained in this file.
### template-custom.php
An example of a custom page template. By default, this page is full width and doesn't contain a sidebar as defined in `lib/config.php`'s `roots_sidebar()` function.

View File

@@ -64,7 +64,7 @@ function roots_display_sidebar() {
* Any of these page templates that return true won't show the sidebar
*/
array(
'page-custom.php'
'template-custom.php'
)
);