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
|
||||
|
||||
`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.
|
||||
|
||||
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')) {
|
||||
|
||||
`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.
|
||||
|
||||
### h5bp-htaccess
|
||||
|
||||
@@ -61,7 +56,7 @@ This file is a placeholder for you to put in custom metaboxes. We recommend the
|
||||
|
||||
### nav.php
|
||||
|
||||
This file contains all the custom nav modifications (for Bootstrap) and cleanup.
|
||||
This file contains all the custom nav modifications (for Bootstrap) and clean up.
|
||||
|
||||
### post-types.php
|
||||
|
||||
|
||||
Reference in New Issue
Block a user