From 5e8e0e78c14c442972da7e87a472890e7d6d3420 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Mon, 15 Oct 2012 20:26:23 -0500 Subject: [PATCH] Update docs for new sidebar exclusion method --- doc/lib.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/doc/lib.md b/doc/lib.md index e2c1590..833ff69 100644 --- a/doc/lib.md +++ b/doc/lib.md @@ -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