Search

Remove Read More Link From WordPress Homepage Easily

Share

If you don't want Read More tag next to the excerpt of every post on the homepage of your WordPress blog, then here is a small trick through which you can easily get rid of it. Clicking "Read More" or the title of the post takes you to the page where you can read more detail of the respective post.

How To Remove Read More Tag From Your WP-Homepage

Use FTP and navigate to wp-includes->post-template.php. If you don't know how to use FTP, follow this guide to use FTP in Windows and Ubuntu

Open post-template.php with a Notepad and find the following line of code

$output .= apply_filters( 'the_content_more_link', ' <a href="' . get_permalink() . "#more-$id\" class=\"more-link\">$more_link_text</a>", $more_link_text );

All you have to do is to comment the above line by placing // before it as shown below

//$output .= apply_filters( 'the_content_more_link', ' <a href="' . get_permalink() . "#more-$id\" class=\"more-link\">$more_link_text</a>", $more_link_text );

Save the file and replace it with the original one.

Ur done... :)

To keep yourself updated with latest news from Microsoft, Apple, Google, Phones and Web, follow us on Follow us on TwitterTwitter, join our Follow us on FacebookFacebook fanpage or subscribe to our Subscribe to RSS FeedRSS Feed

Related Posts:

Comments on this Article

Post A Comment