Changeset 25856
- Timestamp:
- 10/21/2013 04:34:56 PM (12 years ago)
- Location:
- trunk/src/wp-content/themes/twentyfourteen
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/functions.php
r25814 r25856 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 … … 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 } -
trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php
r25802 r25856 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 --> -
trunk/src/wp-content/themes/twentyfourteen/style.css
r25854 r25856 1733 1733 */ 1734 1734 1735 .attachment .content-sidebar { 1736 display: none; 1737 } 1738 1735 1739 .attachment .entry-content { 1736 1740 padding-top: 0; … … 1740 1744 text-transform: none; 1741 1745 } 1746 1742 1747 .entry-attachment .attachment { 1743 1748 margin-bottom: 24px; … … 2962 2967 } 2963 2968 2964 .attachment .entry- content .attachment {2969 .attachment .entry-attachment .attachment { 2965 2970 margin-right: -168px; 2966 2971 margin-left: -168px;
Note: See TracChangeset
for help on using the changeset viewer.