WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#3009 closed enhancement (fixed)

Add CSS class to "<!--more-->" link

Reported by: Viper007Bond Owned by: markjaquith
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.0.4
Component: Template Keywords: bg|has-patch bg|commit
Focuses: Cc:

Description

Now I realize I can do something like this:

<?php the_content('<span class="more">read more</span>'); ?>

But that's not always enough, especially when doing funky things like adding a background image and such.

So, to make life easier for everyone, I propose a CSS class being added to the more link. :)

Attachments (2)

post-template.patch (676 bytes) - added by Viper007Bond 8 years ago.
more_link_refresh.diff (506 bytes) - added by markjaquith 8 years ago.
Refresh for /trunk/

Download all attachments as: .zip

Change History (7)

Viper007Bond8 years ago

comment:1 error8 years ago

  • Keywords bg|commit added
  • Type changed from defect to enhancement

Patch looks good.

comment:2 Viper007Bond8 years ago

Whoops at "defect". I always forget about that new value. :(

comment:3 markjaquith8 years ago

Yeah, I'd like that. I'd also like these 15 minutes of my life back:

http://txfx.net/files/wordpress/wp-customized-more-link.phps

markjaquith8 years ago

Refresh for /trunk/

comment:4 markjaquith8 years ago

  • Owner changed from anonymous to markjaquith
  • Status changed from new to assigned

Patch refreshed for consideration on Wednesday

comment:5 ryan8 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [4278]) more-link css class. Props Viper007Bond. fixes #3009

Note: See TracTickets for help on using tickets.