diff --git a/source/functions/functions.php b/source/functions/functions.php index 8fe1746..816932a 100644 --- a/source/functions/functions.php +++ b/source/functions/functions.php @@ -432,4 +432,15 @@ function twentytwelve_body_class( $classes ) { return $classes; } -add_filter( 'body_class', 'twentytwelve_body_class' ); \ No newline at end of file +add_filter( 'body_class', 'twentytwelve_body_class' ); + +/** + * Adjust $content width for full-width template. + */ +function twentytwelve_content_width() { + if ( is_page_template( 'full-width-page.php' ) ) { + global $content_width; + $content_width = 960; + } +} +add_action( 'template_redirect', 'twentytwelve_content_width' );