Skip to content

Instantly share code, notes, and snippets.

@jeherve
Created February 19, 2013 11:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeherve/4985066 to your computer and use it in GitHub Desktop.
Save jeherve/4985066 to your computer and use it in GitHub Desktop.
Tweak the "Read More" link on the page Changes for Twenty Eleven
<?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">&rarr;</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