Note: Post updated to reflect line change in WordPress 2.8.
If you have setup the main page to show only an excerpt of your choosing by inserting the <!–More–> tag, WordPress by default loads the page and “jumps” to the place where the <!–More–> tag is set in the post. This can be overridden as a default setting by changing a line in wp-includes/post-template.php.
WordPress 2.7
Line 221 – $output .= ‘ <a href=”‘. get_permalink() . “#more-$id\” class=\”more-link\”>$more_link_text</a>”;
WordPress 2.8/2.8.1
Line 226 – $output .= apply_filters( ‘the_content_more_link’, ‘ <a href=”‘ . get_permalink() . “#more-$id\” class=\”more-link\”>$more_link_text</a>”, $more_link_text );
Change this line by removing the #more-$id in the a href. This should result in the following:
WordPress 2.7
Line 221 – $output .= ‘ <a href=”‘. get_permalink() . “\” class=\”more-link\”>$more_link_text</a>”;
WordPress 2.8/2.8.1
Line 226 – $output .= apply_filters( ‘the_content_more_link’, ‘ <a href=”‘ . get_permalink() . “\” class=\”more-link\”>$more_link_text</a>”, $more_link_text );
Save and re-upload the file.
Now that the default setting for read more links are set to show the entire posting, you can change the wording of the link to something more appropriate, such as read entire entry.
Open wp-content/themes/{theme_name}/index.php (make sure to substitute {theme_name} for the desired theme name). Find the line where the read more link is located:
<?php the_content(‘Read the rest of this entry »’); ?>
Change the content between the single quotes to “Read the Entire Entry »”. This will look like this:
<?php the_content(‘Read the entire entry »’); ?>
Additionally, you can remove the title link if desired by remove the <a href> and </a> surrounding <?php the_title(); ?>
Save and re-upload the file.
