Tnanks @alchymyth. I saw that tip when reading about the <more> tag, and tried to implement it myself…but wasn’t clear enough how to insert the example code in the actual statement in content.php. Not knowing php I tripped myself up.
So I inserted this code but still see the default ‘Continue reading’ behavior. No post titles. Can I append the code? I checked that the content.php is in the child theme.
Thanks in advance if you have the opportunity.
On an unrelated quick question, in Twenty Eleven, I’ve applied a background color to post titles (<class “entry-title”> which looks great, but wanted to have a rollover highlight (brighter color). Naturally I though I could style .entry-title a:hover with a background color but of course it ends with the link text – not the whole bar as I’d hoped. I want the whole <entry-title> element to have hover behavior. No go, eh?
OK – enough!
</header><!-- .entry-header -->
<?php global $more; if( $wp_query->current_post <= 2 && !is_paged() ) { $more = -1; } else { $more = 1; } ?>
<?php if ( is_search() || $wp_query->current_post > 2 || is_paged() ) : // 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 [' . get_the_title($post->ID) . '] <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>