Make WordPress Core


Ignore:
Timestamp:
03/28/2013 07:02:51 AM (12 years ago)
Author:
lancewillett
Message:

Twenty Thirteen: improvements to Image post format handling to use a custom image size instead of filtering a $content_width variable.

Includes CSS cleanup and markup improvements to both video and image templates, moving the media HTML piece out of the header element.

Props obenland, closes #23620.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentythirteen/functions.php

    r23837 r23839  
    100100    add_theme_support( 'post-thumbnails' );
    101101    set_post_thumbnail_size( 604, 270, true );
     102
     103    // Register custom image size for image post formats.
     104    add_image_size( 'twentythirteen-image-post-format', 724, 1288 );
    102105
    103106    // This theme uses its own gallery styles.
     
    528531 */
    529532function twentythirteen_content_width() {
    530     if ( has_post_format( 'image' ) || has_post_format( 'video' ) || is_attachment() ) {
     533    if ( has_post_format( 'video' ) || is_attachment() ) {
    531534        global $content_width;
    532535        $content_width = 724;
Note: See TracChangeset for help on using the changeset viewer.