Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#8633 closed enhancement (fixed)

Add class to comment_reply_link

Reported by: johnny_one_eye's profile Johnny_one_eye Owned by: mattwalters's profile mattwalters
Milestone: 2.8 Priority: normal
Severity: normal Version: 2.7
Component: Comments Keywords: has-patch
Focuses: Cc:

Description

There is currently no CSS class defined for the output of comment_reply_link. This makes this element very difficult to style on its own. It would be great if this had a class like "reply-link" or something.

Attachments (1)

comment_link_class_selector.diff (1.3 KB) - added by mattwalters 15 years ago.

Download all attachments as: .zip

Change History (5)

#1 @Johnny_one_eye
15 years ago

I believe the code that would need to be changed is lines 987 and 989 of wp-includes/comment-template.php . I don't have subversion installed (and I don't know how to use it) or I'd code up a patch. Something like seems right:

$link = '<a rel="nofollow" '''class="reply-link"''' href="' .

#2 @Johnny_one_eye
15 years ago

I mean:

$link = '<a rel="nofollow" class="reply-link" href="' .

#3 @mattwalters
15 years ago

  • Cc mattwalters added
  • Keywords has-patch added
  • Owner set to mattwalters
  • Status changed from new to assigned
  • Version set to 2.7

Added class selectors for both links.

#4 @automattor
15 years ago

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

(In [11060]) Add comment-reply-login class. Props mattwalters. fixes #8633

Note: See TracTickets for help on using tickets.