Rename page-custom.php to template-custom.php
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
### HEAD
|
### HEAD
|
||||||
|
* Rename page-custom.php to template-custom.php
|
||||||
* Don't warn about unwritable htaccess if that option is disabled
|
* Don't warn about unwritable htaccess if that option is disabled
|
||||||
* Add missing collapse class for top navbar
|
* Add missing collapse class for top navbar
|
||||||
* Add comment template
|
* Add comment template
|
||||||
|
|||||||
@@ -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
|
#### 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
|
### h5bp-htaccess
|
||||||
|
|
||||||
|
|||||||
12
doc/usage.md
12
doc/usage.md
@@ -65,10 +65,10 @@ A basic Roots theme initially looks like this:
|
|||||||
├── functions.php
|
├── functions.php
|
||||||
├── index.php
|
├── index.php
|
||||||
├── page.php
|
├── page.php
|
||||||
├── page-custom.php
|
|
||||||
├── screenshot.png
|
├── screenshot.png
|
||||||
├── single.php
|
├── single.php
|
||||||
└── style.css
|
├── style.css
|
||||||
|
└── template-custom.php
|
||||||
```
|
```
|
||||||
|
|
||||||
What follows is a general overview of each major part and how to use them.
|
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.
|
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
|
### single.php
|
||||||
|
|
||||||
This file is used to serve the single post template.
|
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
|
### style.css
|
||||||
|
|
||||||
This file is used to tell WordPress that we're a theme. None of the actual CSS is contained in this file.
|
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.
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ function roots_display_sidebar() {
|
|||||||
* Any of these page templates that return true won't show the sidebar
|
* Any of these page templates that return true won't show the sidebar
|
||||||
*/
|
*/
|
||||||
array(
|
array(
|
||||||
'page-custom.php'
|
'template-custom.php'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user