32 | Changing the ‘Read more’ in Twenty Ten Child Theme


To change the ‘read more’ text in a child theme of Twenty Ten, one needs to add a few lines to functions.php of the child theme.

This procedure uses a method that I came across in an introductory article about programming a child theme of Twenty Ten, by Aaron Jorbin, who himself was building upon Mangling strings for fun and profit, by WordPress lead Developer Peter Westwood.

class Transformation_Text_Wrangler {
function reading_more($translation, $text, $domain) {
$translations = &get_translations_for_domain( $domain );
if ( $text == 'Continue reading <span class="meta-nav">&rarr;</span>' ) {
return $translations->translate( 'Get to know more <span class="meta-nav">&raquo;</span>' );
return $translation;
add_filter('gettext', array('Transformation_Text_Wrangler', 'reading_more'), 10, 4);

This way of customising texts in a child theme is applicable to all the strings of the mother theme.

This entry was posted in Tips & Tricks, WordPress and tagged , , , , , , , , . Bookmark the permalink.

28 Responses to Changing the ‘Read more’ in Twenty Ten Child Theme

  1. Marvin comments:

    Hello to all, the contents existing at this web page are in fact
    remarkable for people experience, well, kerep up the nice work

    Also visit mmy weblog: Dog Necklace

  2. Gerard comments:

    Greate pieces. Keepp wrikting such kind of information on your
    site. Im really impressed by it.
    Hello there, You’ve performed a fantastic job. I will definitely
    digg it and for my part recommend to my friends.
    I’m sure they will be benefited from this web site.

    my website kumaşçı

  3. Summer comments:

    Marvelous, what a weblog it is! This weblog provides valuable information to us, keep it up.

    my blog: 우리카지노

  4. Kian comments:

    How to invoke virtual midi keyboard audacity; http://www.alphaschool.in, through a command in Windows 7,XP and Vista …

  5. Esteban comments:

    Keep on working, great job!

    Feel free to surf tto my blog … Klaudia

  6. Audry comments:

    Now I am going to do my breakfast, afterward having myy breakfast coming over again to
    rea other news.

    my website 부스타빗 (Romeo)

  7. Chloe comments:

    The data included inside of have to be collateralized to guard non-public information. The massive advantage of cloud
    hosting is that SMEs get all the computing power they need at a fraction of the fee
    and entry to a variety of specialist information that will otherwise be
    prohibitive in a normal office. Picking the suitable firm to host your digital desktop is vital
    if you want to maintain the suitable degree of computing power mixed with a secure atmosphere.
    Facilitating positive finish-consumer experience and promise improved support are necessary features in such an environment.
    So what features must you get in your MIDI Keyboard?

    For many small midi controller pad (http://uspowersolar.com/index.php?page=user&action=pub_profile&id=13840) controllers you possibly can merely plug in the USB output cable
    into the converter and the iPad will power the MIDI keyboard.
    If the price isn’t a concern for you, you would possibly want to have a look at the controllers Midi Fighter Twister and Midi Fighter 3D by
    DJ TechTools.

  8. Willa comments:

    The information included inside of must be collateralized to guard personal information. The big benefit
    of cloud internet hosting is that SMEs get all of the computing power
    they want at a fraction of the fee and access to a spread of specialist information that will in any
    other case be prohibitive in a standard workplace.

    Picking the precise firm to host your digital desktop is vital if you’d
    like to maintain the right stage of computing energy mixed
    with a secure environment. Facilitating positive end-person expertise and
    promise improved help are vital options in such an setting.
    So what options do you have to get in your akai midi keyboard (Herman) Keyboard?
    For many small MIDI controllers you can simply plug in the USB output cable into
    the converter and the iPad will power the MIDI keyboard.
    If the worth is just not a concern for you, you would possibly need to take
    a look on the controllers Midi Fighter Twister and Midi Fighter 3D by DJ TechTools.

  9. Noe comments:

    Dreaming Of You Performance (Original Song) Here
    is my performance from this week. This is an original song, I wrote this song myself.
    For production, I used protools and a cheap midi keyboard (Calvin) keyboard.

    Please subscribe to my channel and check out my social media.


  10. Henrietta comments:

    I used to be able to find good information fom your content.

    my weeblog … WBC247 (Kayleigh)

  11. Polly comments:

    It’s awesome for me to have a web site, which is valuable in support
    of my knowledge. thanks admin

    my weblog 007카지노 (Hollie)

  12. Wilma comments:

    I’ve been surfing online greater than 3
    houds these days, yet I never discovered any attention-grabbing article like yours.
    It’s beautiful price enough for me. In my opinion, if all webmasters and bloggers made good
    content as you probably did, the internet shall be much more useful than ever before.

    My blog 우리카지노

  13. Sagive SEI comments:

    Very Cool man! worked like a chare 🙂 thanks a lot

  14. Darlene L Janssen comments:

    I am a total newbie and I am trying to have a read more on a page, have done masses of reading but not finding anything. Found code in the codex page but do not know which file to put it in. I am using the twenty ten template and tried, index.php, page.php and others to no avail.

    When I used the read more on the page, it seems to ignore the tag and displays the whole page. Could anyone help me figure this out as this is my very first try and I have spent days and got nowhere.

    This is the code I found but I don’t know wher to put it //


    I really have no idea how to make a child theme so was trying to put it in the theme? Any help would be appreciated.

    • alchymyth replies:

      try to check loop.php and loop-page.php in Twenty Ten. what kind of page are you talking about? a static page. or a archive page? ‘read-more’ and static pages don’t really work together.
      to ask all your wordpress related questions, consider joining the wordpress.org support forum – there are many members who should be able to help you with your problems.

  15. Tom Durkin comments:

    I’ve tried a lot of other solutions with no luck but this works swell!

    thanks a lot!

  16. Peter comments:

    Thanks for this – I spent a day and tried a dozen ideas from Google before I found one that actually works!
    Many thanks!

  17. Enrico comments:

    Hi, how we can styling this function? For example, button background for “Get to know more”, etc etc, or just a different font, etc.

  18. Scott comments:

    Does this also change the “…” before the text of the read more? I’m using this in my child theme as I couldn’t find a way to remove the 3 periods before the text.
    // remove the ... from excerpt and change the text
    function change_excerpt_more()
    function new_excerpt_more($more)
    return '<span class="read-more"><a href="' . get_permalink($post->ID) . '">Read the Rest &raquo;</a></span>';
    add_filter('excerpt_more', 'new_excerpt_more');
    add_action('after_setup_theme', 'change_excerpt_more');

  19. Chris comments:

    What about if you wanted to have the post title displayed as the link – as in Continue Reading (post title)

  20. Greg Astles comments:

    Thanks, this is great! Question, though.
    I seem to be breaking this with the text I want to place in there. I’d like to add “But wait, there’s more”, but the apostrophe seems to be breaking it. Is there a way have it in there?

  21. smoo comments:

    Thank you so much for this!
    I have been trying for many hours now to make this happen, and compared with everything else I’ve modified in WP, this has been the hardest solution to track down…
    You are a star :o)

  22. Pingback: Twenty Ten: Free Wordpress Theme (and Related Articles) | READMORE.CE.MS


    03/11/2010 | […] Transformation Power Tools: Changing the ‘Read more’ in Twenty Ten Child Theme […]

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


This site uses Akismet to reduce spam. Learn how your comment data is processed.