Changeset 21279
- Timestamp:
- 07/18/2012 06:13:49 PM (12 years ago)
- Location:
- trunk/wp-content/themes/twentytwelve
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentytwelve/functions.php
r21278 r21279 327 327 /** 328 328 * Extends the default WordPress body class to denote a full-width layout. 329 * 330 * Used in two cases: no active widgets in sidebar, and full-width page template. 329 * Used when there are no active widgets in the sidebar. 331 330 * 332 331 * @since Twenty Twelve 1.0 … … 341 340 342 341 /** 343 * Adjust $content width for full-width and single image attachment templates. 342 * Adjust $content width for full-width and single image attachment templates 343 * and when there are no active widgets in the sidebar. 344 * 345 * @since Twenty Twelve 1.0 344 346 */ 345 347 function twentytwelve_content_width() { 346 if ( is_page_template( 'full-width-page.php' ) || is_attachment() ) {348 if ( is_page_template( 'full-width-page.php' ) || is_attachment() || ! is_active_sidebar( 'sidebar-1' ) ) { 347 349 global $content_width; 348 350 $content_width = 960; -
trunk/wp-content/themes/twentytwelve/style.css
r21277 r21279 488 488 body.page-template-full-width-page-php #primary, 489 489 body.page-template-homepage-php #primary, 490 body.single-attachment #primary { 490 body.single-attachment #primary, 491 body.full-width #primary { 491 492 width: 100%; 492 493 }
Note: See TracChangeset
for help on using the changeset viewer.