Twenty Twelve: only show excerpt on search view, not full content.
Props bradthomas127 and obenland. See #21462. git-svn-id: https://develop.svn.wordpress.org/trunk@21437 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
03e65d021c
commit
43522b9b42
@ -30,10 +30,16 @@
|
||||
<?php endif; // comments_open() ?>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
|
||||
<div class="entry-summary">
|
||||
<?php the_excerpt(); ?>
|
||||
</div><!-- .entry-summary -->
|
||||
<?php else : ?>
|
||||
<div class="entry-content">
|
||||
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?>
|
||||
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
|
||||
</div><!-- .entry-content -->
|
||||
<?php endif; ?>
|
||||
|
||||
<footer class="entry-meta">
|
||||
<?php twentytwelve_entry_meta(); ?>
|
||||
|
@ -207,7 +207,8 @@ label ~ span.required {
|
||||
.site-header h2 {
|
||||
text-align: right;
|
||||
}
|
||||
.entry-content p {
|
||||
.entry-content p,
|
||||
.entry-summary p {
|
||||
text-align: right;
|
||||
}
|
||||
.page-template-homepage-php .widget-area .widget_text img {
|
||||
|
@ -762,6 +762,7 @@ article.sticky .featured-post {
|
||||
line-height: 1.846153846;
|
||||
}
|
||||
.entry-content p,
|
||||
.entry-summary p,
|
||||
.comment-content p {
|
||||
margin: 0 0 24px;
|
||||
margin: 0 0 1.714285714rem;
|
||||
@ -1325,7 +1326,8 @@ label ~ span.required {
|
||||
|
||||
/* Minimum width of 600 pixels. */
|
||||
@media screen and (min-width: 600px) {
|
||||
.entry-content p {
|
||||
.entry-content p,
|
||||
.entry-summary p {
|
||||
text-align: left;
|
||||
text-justify: auto;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user