Customizing the Read More link with WordPress

If you have set your WordPress site to display post excerpts on the front or home page, you will want visitors to click on the title or a link to encourage them to continue reading your post or article, right? WordPress makes this technique easy, and customizable.

Here is the steps:

  • Go to wordpress admin panel –> Design tab –> Theme Editor.
  • Select Main Index template (index.php) to edit it
  • Find the lineĀ  “<?php the_content(‘Read the rest of this entry &raquo;’); ?>”
  • And replace it with the following code.


$content = get_the_content($more_link_text, $stripteaser, $more_file);
if(strlen($content)>500) // chanage 500 as per your needs
$part_msg=substr($content, 0, 500);// chanage 500 as per your needs
echo ‘<p>’.$part_msg.’… ‘;
<br /><br />
<a href=”<? comments_link(); ?>”>Read More…</a></div>
echo ‘</p>’;
echo ‘<p>’.$content.'</p></div>’;


Where “500” represents number of characters that you want to show.

If you cannot able to make the above changes with the wordpress theme editor, use your ftp.

Here is the template directory




where blog is the directory where i installed my wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *

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