How To Add A Read More Link to Genesis Child Theme Excerpts

How To Add A Read More Link to Genesis Child Theme Excerpts

Using the Genesis Theme Framework is a huge help when setting up, customizing and maintaining a WordPress powered website. But sometimes the default settings won't quite meet your requirements.

Recently while customizing a Genesis Child Theme for a client's website, in the theme settings I had set the Content Archives to Display post excerpts. But when viewing the post archives the excerpts did not have a “Read More” link like the client wanted.

I knew there was a quick way to make this happen in the Genesis WordPress Theme Framework and headed off to Google to make a quick search for the solution. In a matter of a couple of minutes I had the answer.

Below is the code I found and customized for my purposes. You'll need to be comfortable editing the functions.php file for the Genesis Child Theme you are using but it's pretty simple if you're careful.

// Add Read More Link to Excerpts 
add_filter('excerpt_more', 'get_read_more_link'); add_filter( 'the_content_more_link', 'get_read_more_link' ); function get_read_more_link() { return '...&nbsp;<a href="' . get_permalink() . '">[Read&nbsp;More]</a>'; }

My thanks to WP Smith for sharing the original code.

I hope this helps you, but I'm also sharing this here so I can quickly find it the next time I need this tip myself.



Was this helpful?

Subscribe to the free Email Newsletter with exclusive content only for subscribers.

No SPAM promise! Unsubscribe any time.

61 thoughts on “How To Add A Read More Link to Genesis Child Theme Excerpts”

  1. Excellent! I used to do this with a much more complicated method that didn’t work great (I don’t even remember exactly what it was.) I was hoping to find a quick fix and this worked perfectly. Thanks for the post.

  2. Crap, I tried it and broke it, lol! Any ideas?

    Parse error: syntax error, unexpected $end in /home/content/54/9600754/html/braudcommunications/blog/wp-content/themes/agency/functions.php on line 108

  3. Hi ! Thank you so much When I install child theme of genesis my site not ” read more ” . I have been worry about that . it was failure i think . But when I read your post . I have been success . Thank you so much one more .

  4. Thanks for offering. I actually went in via ftp and took it out. Is there a certain place in the file that I need to put it?

  5. Thank you so much.

    Tried the code snippets in Studiopress’s own website with no luck.

    Your one worked perfectly 🙂

    Thanks for sharing.

  6. Ok so it’s working when I don’t manually set a “MORE” tag in my post.

    But when I set a more tag it doesn’t show the READ MORE link like it’s supposed to.

    Seems “add_filter( ‘the_content_more_link’, ‘get_read_more_link’ );” is not doing anything in my case.

    Any ideas?

    Thanks

  7. This is great and it has helped me out.

    I would like to automatically display a link from the excerpt to its post even if post has an excerpt but the excerpt is shorter than the specified cut-off length for archives.

    In other words, when the full excerpt is displayed and there is no “more” to be read (of the excerpt, that is.)

    Reason is that some people don’t know that you can usually click the title of the post in the
    archives.

  8. Big thanks… i was looking for exactly this… having that read more link is really important! i really appreciate and it has helped me greatly… keep up with the good work…

  9. Works perfectly! Not sure why the function is missing from the core theme, but much thanks for posting this!

  10. Do I copy the numbers you have on the far left also? Or just what appears to be the code without the numbers?

  11. I added the code without the numbers.

    I didn’t break the site but it didn’t work either. I see no difference. Am I meant to now manually insert more tags each time or?

  12. Hey if I was to change Read More to Continue Reading would it say continue reading or break it?

  13. Stupid question: Do we have to input our unique site URL where you’ve typed <a href="' or do we leave exactly as is? Thank you!

  14. Works like a charm and doesn’t cost an arm! Thanks for this information!

    Just used it, and poof, changed everything…I was always thinking, I’ll get to that one day, well today was the day..

    Thanks!

    Carlos

  15. Great.. I have been researching on how to do this in my blog. The code works… Thanks for sharing.

  16. Thank you so much.

    Tried the code snippets in Studiopress’s own website with no luck.

    Your one worked perfectly 🙂

    Thanks for sharing.

Comments are closed.