Update docs for new sidebar exclusion method
This commit is contained in:
@@ -28,12 +28,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_sidebar()` is used to define which pages shouldn't get the sidebar. By default, the 404 and `page-custom.php` template are full width. If you would like to remove the sidebar from additional pages, add in a proper conditional to the first `if` statement.
|
`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.
|
||||||
|
|
||||||
If you had a page named Contact, you would update the statement to look like:
|
|
||||||
|
|
||||||
if (is_404() || is_page_template('page-custom.php') || is_page('contact')) {
|
|
||||||
|
|
||||||
|
|
||||||
### h5bp-htaccess
|
### h5bp-htaccess
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user