Posted on 13 August, 2009 By 16 Comments

How to Style the Read More Link in WordPress

 

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:

Posted In : WordPress Tips

Did you enjoy this article? I can assist you with your WordPress or Facebook project. Contact me and I will provide you with an estimate. You can also connect with me on Facebook or follow me on Twitter.




StudioPress Premium WordPress Themes

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 badge

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.

Recent Comments

    • Victoria12: Wow! This are so cute. It is so much special when our kids do it on their own and give it us as a surprise gift.. So tou...
    • Catherine: I hope that the page owners have a plan for the transition. One concern is that Facebook doesn’t have a great method of ...
    • harm: You no longer can "Add to My Page" This used to be simple, using the facebook UI. Unfortunately facebook removed thi...
    • Phil Derksen: I was referencing plugin #1 in the list btw. :)...
    • Phil Derksen: Thanks for mentioning my Pin It button plugin. I'd love to hear what people think of it and what they'd like to see adde...

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