WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#8633 closed enhancement (fixed)

Add class to comment_reply_link

Reported by: Johnny_one_eye Owned by: 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 5 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Johnny_one_eye5 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="' .

comment:2 Johnny_one_eye5 years ago

I mean:

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

comment:3 mattwalters5 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.

comment:4 automattor5 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.