Customize the More Tag on WordPress



The More tag is a very useful WordPress feature. It allows you to select a “cut-off” point, and only the content above that point will be displayed on the Homepage.

The More tag will also insert a “Read more” link after the excerpt to encourage the reader to continue reading the article in question.

Personally I am not a big fan of “Read more.” You can see on the Homepage that I am using “Continue Reading…”. Maybe you want to use yet something else, so how do you customize that link on the More tag?

It is pretty simple, just go to your WordPress control panel, then “Presentation,” then “Theme Editor.”

Now you need to open the file that governs the Homepage, which is usually called “Main Index Template” (or index.php).

Once you have that file open you will need to find the line that calls the posts. It looks like this:

<?php the_content(__('Read more'));?>

Just replace “Read more” with the text of your preference and you are done!

You can also style that text by creating a class on the stylesheet. The result would look like this:

<?php the_content(__('<span class="moretag">Your text here</span>'));?>

Sign-up To The Newsletter And Get A Free eBook


  • Sign-up to the Daily Blog Tips newsletter and you will be able to download the "Make Money Blogging" eBook for free (worth $47).
  • You will also receive tips to improve your blog, strategies to make money and useful resources from around the web.

26 Responses to “Customize the More Tag on WordPress”

  1. Technobuzz.net on July 20, 2007 4:37 am

    Thanks For the post

    http://www.technobuzz.net

  2. Frank on July 20, 2007 4:59 am

    This is a simple but useful customization. We changed our blog a long time ago to read “More >>”. Simple, but it gets the point across.

  3. Daniel on July 20, 2007 5:50 am

    You can even add pictured to the More Tag, I will it to see how it looks.

  4. Hairgel_Addict on July 20, 2007 6:29 am

    Doesn’t wordpress allready have a CSS class assigned to “ream more” link? Anyway, I did not insert any additional things into “the_content()” and edited CSS class “.more-link” – and it works fine :)

    But if you want add additional stuff there, then “the_content()” editing will be useful ;)

  5. Daniel on July 20, 2007 6:40 am

    Hairgel, WordPress does not come with a stylesheet, you are probably referring to your own theme, right?

    If your theme does have a class for the more link than yes you can just change that for the styling part.

  6. Hairgel_Addict on July 20, 2007 7:11 am

    well, i’ve created my own theme from scratch, yes.. but I don’t remember editing any files inserting that CSS style for “read more” link..

    Maybe just my memory fails me, sorry.. :)

    And the nickname is “Hairgel_Addict”, not just “Hairgel” ;)

  7. Egonitron.com on July 20, 2007 10:21 am

    I’ve actually been looking around at how to do this, but my theme is weird and didn’t have the normal tag. I got it figured out though, thanks!

  8. engtech @ internet duct tape on July 20, 2007 11:24 am

    You can also do it inline to change only one post.

    <!–more Text goes here–>

    might be a WordPressMU only thing.

  9. MajoTajo on July 20, 2007 7:16 pm

    Nice one Dani!

    I also suggest to use SEO pack plugin for wp ! I like it it helps a lot to rank up my page.

    http://www.bontb.com

    Do you allow html?

  10. Daniel on July 21, 2007 3:48 am

    Yeah HTML is fine.

  11. Sreejith on July 24, 2007 5:42 am

    I used to put this break in my posts. But, now, I’m not doing it because, for some reason, it makes my feed into a partial feed in which only content till the “break” is shown. Any bright ideas ?

  12. William Profet :: OneJobTwoSalaries.com on July 25, 2007 12:43 am

    Very useful! Thank you! I have always used this opportunity to change my “Read more” links and it works great!

    :)

  13. JTPRATT's Blogging Mistakes on August 7, 2007 10:47 am

    would be nice to have an entire page of tips like this, to replace default things and customize your site as your own. Like for instance – how do you get your copyright into each post…

    and for god’s sake don’t you have a ‘subscribe to comments’ option?

  14. James on October 5, 2007 8:18 pm

    nice one, i’ve been looking for an article like this to personalized the read more link on my upcoming blog.

  15. vad on October 24, 2007 10:48 am

    Hi There,
    I heard that using “Read more” prevents of duplicate content but why big blogs don’t use this function???

    All the best,
    Vad
    http://www.plentyofluck.com/

  16. Turk Hit Box on November 2, 2007 1:07 am

    I always use it, and display ads with read more as well :)
    http://www.turkhitbox.com/adsense/adsense-instead-of-more-tag.html

  17. Michael on November 10, 2007 11:51 am

    Another cool tip used, or will be when I get in and edit the file.

  18. askperson.com on July 14, 2008 9:50 am

    good tip but i could not got it.

  19. Rudi on July 24, 2008 12:17 pm

    Is there any way you can use the “MORE” tag on a static front page with multiple posts?

  20. Pali Madra on September 24, 2008 7:53 am

    There is a class called “more-link” that is added to the more content. This is after the code that have you given has been changed in the index.php. Can help me in finding out what is happening since I think the class that should be assigned needs to be moretag.

  21. Y920 on February 15, 2009 4:55 am

    Clearly explained.. Even wordpress not doing that.. Keep rock on..

  22. Yohan Perera on July 13, 2009 3:18 am

    This is a cool tutorial. Thanks for the great post… =)

  23. Yazzle on May 19, 2010 2:19 am

    Hi there – what if you actually don’t want the words READ MORE (or anything like that) to appear at all on SOME posts? Is it possible to customise?

  24. JT on October 6, 2010 8:44 pm

    Looks like this article is a few years old. If you are using WordPress 2.8 or higher you can filter on the the_content_more_link hook to change the continue text. If you have a little PHP knowledge you can customize it to your heart’s content.

    I have an article on how to do it on my site or you can just do a search on that hook name. My article is here.

Sponsors

Advertise Here Start Making Money Online in 12 Weeks! Get A Keyword Research Report Backlink Build Link Building Services Pay Only When You Rank - RankPay Flex Theme for WordPress

Popular Articles