WordPress.org

Make WordPress Core

Ticket #23542: 23542.diff

File 23542.diff, 1.4 KB (added by Mamaduka, 5 years ago)
  • wp-content/themes/twentythirteen/functions.php

     
    528528add_action( 'template_redirect', 'twentythirteen_content_width' );
    529529
    530530/**
     531 * Adjust embed defaults for video post formats.
     532 *
     533 * @since Twenty Thirteen 1.0
     534 */
     535function twentythirteen_embed_defaults( $defaults ) {
     536        $post = get_post();
     537
     538        if ( ! empty( $post ) && has_post_format( 'video' ) ) {
     539                $defaults['width'] = 724;
     540                $defautls['height'] = 1000;
     541        }
     542
     543        return $defaults;
     544}
     545add_filter( 'embed_defaults', 'twentythirteen_embed_defaults' );
     546
     547/**
    531548 * Adds entry date to aside posts after the content.
    532549 *
    533550 *
  • wp-content/themes/twentythirteen/style.css

     
    17351735        background-color: #dd5625;
    17361736}
    17371737
     1738.format-video .entry-content embed,
     1739.format-video .entry-content iframe,
     1740.format-video .entry-content object,
     1741.format-video .entry-content video {
     1742        margin: 0 -60px;
     1743        max-width: 724px;
     1744}
     1745
    17381746.format-video .entry-content a,
    17391747.single-format-video .entry-content a {
    17401748        color: #fbfaf3;