Ticket #23542: 23542.diff
File 23542.diff, 1.4 KB (added by , 12 years ago) |
---|
-
wp-content/themes/twentythirteen/functions.php
528 528 add_action( 'template_redirect', 'twentythirteen_content_width' ); 529 529 530 530 /** 531 * Adjust embed defaults for video post formats. 532 * 533 * @since Twenty Thirteen 1.0 534 */ 535 function 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 } 545 add_filter( 'embed_defaults', 'twentythirteen_embed_defaults' ); 546 547 /** 531 548 * Adds entry date to aside posts after the content. 532 549 * 533 550 * -
wp-content/themes/twentythirteen/style.css
1735 1735 background-color: #dd5625; 1736 1736 } 1737 1737 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 1738 1746 .format-video .entry-content a, 1739 1747 .single-format-video .entry-content a { 1740 1748 color: #fbfaf3;