WordPress.org

Ready to get started?Download WordPress

Forums

How : child theme / content.php / Continue reading excerpts(not Functions.php) ? (1 post)

  1. mpesgt01
    Member
    Posted 10 months ago #

    Excerpts works, but how can't I have "[...]" change for "Continue reading"
    But why is it written in the CONTENT.PHP codes below ? Can I do it from there ? Why should I play with Functions.php to do this?

    I use WP TwentyTwelve theme, with a child theme... so my Content.php is in the child

    <?php if ( is_search() || is_archive() || is_home () ) : // Only display Excerpts for Search AND home ?>
    		<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">&rarr;</span>', 'twentytwelve' ) ); ?>
    			<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
    		</div><!-- .entry-content -->
    		<?php endif; ?>

Reply

You must log in to post.

About this Topic