Viewing 5 replies - 1 through 5 (of 5 total)
  • it is in functions.php of twenty ten

    btw:
    the Twenty Ten theme as the dafault theme of wp3 will be overwritten with the next update of wp; all modifications in twenty ten will be lost.
    instead of editing twenty ten directly, it is therefore advised to create a child theme: https://codex.www.ads-software.com/Child_Themes

    Thread Starter celticmaverick

    (@celticmaverick)

    Thanks alchymyth – I am just creating my first child theme – so, after I have my style.css – should I then copy functions.php and paste it into the child theme folder and make the change there?

    Also there seems to be a lot of code about ‘continue reading’ in functions.php – where exactly can I change the wording? Thanks.

    should I then copy functions.php and paste it into the child theme folder and make the change there?

    due to the nature of functions.php, directly copying/pasting the full functions.php of the parent theme into the child theme would get you a lot of errors;

    however, there is a possible way of changing the wording of the ‘continue reading’ link:
    https://www.transformationpowertools.com/wordpress/read-more-in-twenty-ten-child-theme

    – just for the records:
    this would be the code in functions.php of the parent theme to edit the wording:

    function twentyten_continue_reading_link() {
    	return ' <a href="'. get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) . '</a>';
    }

    but i forgot to mention, that the wording is also in loop.php:
    <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>

    however, the above linked solution should take care of changing the ‘continue reading’ text sitewide.

    Thread Starter celticmaverick

    (@celticmaverick)

    Cheers alchymyth – I will check out that link.

    Find,

    <div class="entry-content">
    				<?php the_content( __( 'Continue reading<span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
    				<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
    			</div><!-- .entry-content -->

    Change the “Continue reading” to say whatever you want….. it’s in the loop.php file.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Twenty Ten – Editing 'continue reading' tag’ is closed to new replies.