Changeset 24333
- Timestamp:
- 05/23/2013 05:32:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentythirteen/functions.php
r24151 r24333 96 96 set_post_thumbnail_size( 604, 270, true ); 97 97 98 // Register custom image size for imagepost formats.98 // Register custom image sizes for image and gallery post formats. 99 99 add_image_size( 'twentythirteen-image-post', 724, 1288 ); 100 add_image_size( 'twentythirteen-gallery-post', 300, 300, true ); 100 101 101 102 // This theme uses its own gallery styles. … … 451 452 function twentythirteen_gallery_atts( $atts ) { 452 453 if ( has_post_format( 'gallery' ) && ! is_single() ) 453 $atts['size'] = 'large';454 $atts['size'] = wp_is_mobile() ? 'thumbnail' : 'twentythirteen-gallery-post'; 454 455 455 456 return $atts;
Note: See TracChangeset
for help on using the changeset viewer.