Ticket #25624: 25624.diff
| File 25624.diff, 2.4 KB (added by , 13 years ago) |
|---|
-
wp-content/themes/twentyfourteen/functions.php
118 118 add_action( 'after_setup_theme', 'twentyfourteen_setup' ); 119 119 120 120 /** 121 * Adjust content_width value for full-width and attachment templates.121 * Adjust content_width value for image attachment template. 122 122 * 123 123 * @since Twenty Fourteen 1.0 124 124 * 125 125 * @return void 126 126 */ 127 127 function twentyfourteen_content_width() { 128 if ( is_attachment() )128 if ( is_attachment() && wp_attachment_is_image() ) 129 129 $GLOBALS['content_width'] = 810; 130 130 } 131 131 add_action( 'template_redirect', 'twentyfourteen_content_width' ); -
wp-content/themes/twentyfourteen/inc/template-tags.php
80 80 <h1 class="screen-reader-text"><?php _e( 'Post navigation', 'twentyfourteen' ); ?></h1> 81 81 <div class="nav-links"> 82 82 <?php 83 if ( is_attachment() ) : 84 previous_post_link( '%link', __( '<span class="meta-nav">Published In</span>%title', 'twentyfourteen' ) ); 85 else : 83 86 previous_post_link( '%link', __( '<span class="meta-nav">Previous Post</span>%title', 'twentyfourteen' ) ); 84 87 next_post_link( '%link', __( '<span class="meta-nav">Next Post</span>%title', 'twentyfourteen' ) ); 88 endif; 85 89 ?> 86 90 </div><!-- .nav-links --> 87 91 </nav><!-- .navigation --> -
wp-content/themes/twentyfourteen/style.css
1732 1732 * ----------------------------------------------------------------------------- 1733 1733 */ 1734 1734 1735 .attachment .content-sidebar { 1736 display: none; 1737 } 1738 1735 1739 .attachment .entry-content { 1736 1740 padding-top: 0; 1737 1741 } … … 1739 1743 .attachment footer.entry-meta { 1740 1744 text-transform: none; 1741 1745 } 1746 1742 1747 .entry-attachment .attachment { 1743 1748 margin-bottom: 24px; 1744 1749 } … … 2950 2955 margin-right: -168px; 2951 2956 } 2952 2957 2953 .attachment .entry- content .attachment {2958 .attachment .entry-attachment .attachment { 2954 2959 margin-right: -168px; 2955 2960 margin-left: -168px; 2956 2961 max-width: 810px;
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)