diff --git a/functions.php b/functions.php index cd17f5e17..66d677afb 100644 --- a/functions.php +++ b/functions.php @@ -362,11 +362,14 @@ endif; function twentytwelve_body_class( $classes ) { $background_color = get_background_color(); - if ( ! is_active_sidebar( 1 ) || is_page_template( 'full-width-page.php' ) ) + if ( ! is_active_sidebar( 1 ) || is_page_template( 'page-templates/full-width.php' ) ) $classes[] = 'full-width'; - if ( is_page_template( 'homepage.php' ) && has_post_thumbnail() ) - $classes[] = 'has-post-thumbnail'; + if ( is_page_template( 'page-templates/home.php' ) ) { + $classes[] = 'template-home'; + if ( has_post_thumbnail() ) + $classes[] = 'has-post-thumbnail'; + } if ( empty( $background_color ) ) $classes[] = 'custom-background-empty'; @@ -384,7 +387,7 @@ add_filter( 'body_class', 'twentytwelve_body_class' ); * @since Twenty Twelve 1.0 */ function twentytwelve_content_width() { - if ( is_page_template( 'full-width-page.php' ) || is_attachment() || ! is_active_sidebar( 1 ) ) { + if ( is_page_template( 'page-templates/full-width.php' ) || is_attachment() || ! is_active_sidebar( 1 ) ) { global $content_width; $content_width = 960; } diff --git a/full-width-page.php b/page-templates/full-width.php similarity index 78% rename from full-width-page.php rename to page-templates/full-width.php index ebf71e1f2..e5c7dd4c3 100644 --- a/full-width-page.php +++ b/page-templates/full-width.php @@ -1,6 +1,8 @@