Replace WordPress Excerpt Ellipsis with Link

  • follow us in feedly
Published February 16, 2013 by Brad Knutson
Continue Reading

By default, the the twentytwelve WordPress theme will end all excerpts with an ellipsis […]. In most cases, it’s more user friendly to replace the ellipsis with a “Continue Reading” link to the post.

To do this, we will write a function in our functions.php file in our theme. Here is one example you can add at the bottom of the file:

The above example will replace all ellipsis that display in excerpts with an inline-link to continue reading. See my blog page to see a live example of this.

You can manipulate the replacement content in any way you want. Change the text to say something other than “Continue Reading” if you’d like, or wrap the entire replacement string in a div so that it’s not placed inline, or style it however you’d like. The possibilities are endless, but anything is better than the default ellipsis.

The following two tabs change content below.
Founder at Inbounderish
Brad Knutson is a Web Developer in the Twin Cities area of Minnesota. He has experience working with WordPress and Drupal, and also has an interest in SEO and Inbound Marketing.

Keep Up-to-Date



See a complete list of topics discussed in blog posts here.

Check These Out

Get 2 Weeks Free! Sign Up Today! Premium Managed WordPress Hosting Genesis Framework for WordPress SEO is complex. Tools should be simple. Thesis Theme for WordPress:  Options Galore and a Helpful Support Community

Share Your Thoughts

Your email address will not be shown.

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