• So I’m not sure if many are aware, or even care, but I notice that when a comment includes a website address, apparently the comment_author_link() function adds an annoying class=’url’ to the a tag, assuming you want to style the link (see sample close below), which I don’t.

    I tried to search through a couple comments-related php files but did not find a place where I can remove this class. Somewhat of a notice here. Anyone have an idea where and how I can modify this?

    Thanks a lot!

    <p class=”comments-data”>Billy Bo BobFebruary 15, 2010 at 10:51am</p>

Viewing 2 replies - 1 through 2 (of 2 total)
  • You’d need to create a custom comment callback function in your theme’s functions.php file and then reference it via wp_list_comments.

    Thread Starter tameem

    (@tameem)

    Ok thanks for the response, but I dont really understand any of that. Can someone give me some more details and information on what I need to do? I was thinking I should be able to find the function on question and make the modification necessary?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Removing the class=”url” attribute in comments’ is closed to new replies.