Created
February 19, 2013 11:35
-
-
Save jeherve/4985066 to your computer and use it in GitHub Desktop.
Tweak the "Read More" link on the page
Changes for Twenty Eleven
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( is_search() ) : // Only display Excerpts for Search ?> | |
<div class="entry-summary"> | |
<?php the_excerpt(); ?> | |
</div><!-- .entry-summary --> | |
<?php elseif ( is_home() ) : // Only Edit the "Read More" link on the home page ?> | |
<div class="entry-content"> | |
<?php the_content( __( 'Vous voulez en savoir plus ?', 'twentyeleven' ) ); ?> | |
<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> | |
</div><!-- .entry-content --> | |
<?php else : ?> | |
<div class="entry-content"> | |
<?php the_content( __( 'Continue reading <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; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment