Posted on 13 August, 2009 By Kim Woodbridge 16 Comments

How to Style the Read More Link in WordPress

 
Share

Read More (by Barry Yanowitz)

Last week I wrote about using the WordPress More tag to control the content displayed on the front page of your blog.

As I mentioned, you can have the More link say anything you want. WordPress also provides a CSS class for the more link that you can use to style it.

 

 

When you use the more tag, you are breaking apart the content of the post in a spot that you determine. The content tag will look like this:

<?php the_content('continue'); ?>

Continue is what mine says but you can change the text between the single quotes to say anything you want. That text will be the link. Stratos has also written a tutorial on how you can have the title of your post in the read more link.

WordPress also provides the CSS class .more-link that can be used to style the Read More link.

Mine looks like the following:

.more-link {
	text-align:right;
	float:right;
	font-size:10px;
	width:72px;
	height:17px;
	text-transform:uppercase;
	padding-right:10px;
	margin-bottom:8px;
	background:url(images/b_more.png) no-repeat right top;
}

This is placing the link in the layout, giving it a font size, making the text uppercase, and placing an image behind it. You can use this class to style you link however you want or make it match your theme. This code goes in your style sheet or style.css file.

If you want to learn more about CSS and what you can use to style your links and other features of your blog, W3Schools is a great place to start.

photo credit: Barry Yanowitz


Related Posts:
  • Using the WordPress More Tag to Control Content Displayed on Front Page
  • How to Style a Sticky Post in WordPress 2.7
  • (Anti) Social-Lists 5/24/09
  • Adding WordPress 2.7 Threaded Comments to your Theme
  • WordPress – How To Create a Static Front Page
  • Posted In : WordPress Tips
    If you enjoyed this post, please subscribe to my RSS Feed. You can also connect with my Facebook page or follow me on Twitter.



    16 Responses to “How to Style the Read More Link in WordPress”

    Trackbacks/Pingbacks
    1. Change Colors | Links | WordPress Theme Customizations
    Leave a Comment
    You may use: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .

    CommentLuv Enabled

    Recent Comments

      • Ari Herzog: Agreed on the updates/inbox snafu. I rarely see page updates and I know where they are! .-= Ari Herzog´s last blog .....
      • jayson: Kim, Love the themes. I am looking to update the theme on my site to something more appropriate. My site is all abou...
      • vered: "I wish more people would use this. I think it’s silly when I get updates for things occuring in Kansas and California –...
      • Dennis Edell @ Direct Sales Marketing: I was speaking generally, not specifically this month. how exactly do you work things? .-= Dennis Edell @ Direct Sales M...
      • Lucy Beer: Unfortunately I think next to no-one actually sees those "Updates". They're buried in a subsection of the inbox and I do...
      • Kim Woodbridge: Hi Marbella - Thanks! I had a great time....
      • Kim Woodbridge: Hi Julie - I'll probably try kayaking again next summer but I don't know if I will become much of a kayaker - I had a di...
      • Kim Woodbridge: Hi Vered - If you ever get the chance, you should go. It's like a different world - it's so quiet and peaceful....

    About

    Kim Woodbridge is an accomplished Information and Technical Consultant specializing in the entire implementation of a WordPress based website including installation, theme design, upgrades, unique customizations and ongoing site maintenance.

    Wordpress Services

    • Installation, upgrades and maintenance
    • Conversion of existing html and css templates
    • Theme and plugin recommendations
    • CSS customizations
    • Troubleshooting and tweaks for unique situations
    • Customization for individual blogging goals and needs
    • Training and advice