Subscribe to
Posts
Comments
NSLog(); Header Image

WordPress 2.7 Comments

I spent several hours playing with this blog's comments. I used this post as a guide and, in general, had things working quite well.

In the end, I've reverted back to my WordPress 2.6 comments template. I simply didn't like the fact that the actual comments block - each comment - was output in pre-defined HTML. Though I could probably create a plugin that wrote out my specific desired HTML, or create a filter, as of right now I don't feel that's worth the time it'd take. And though I could get the default HTML to look reasonably similar to what I've been using, it wasn't close enough and I couldn't include certain features like the # to permalink to comments or the "Quote Me" functionality. The gravatars were 32 pixels instead of the 40 I prefer. I didn't like the use of single ' instead of double " around div attributes. And so on for about three or four other small annoyances.

Now I'm off to tackle the upgrade at The Sand Trap.

3 Responses to "WordPress 2.7 Comments"

  1. I have yet to tackle the comments form for WordPress 2.7, but thanks for taking a look and saying something.

    I'm using that author's commenting form temporarily, and will probably rework it when I've got a chance. It's not bad, but the bullets don't look so hot.

    Also, I'm fairly sure that you can specify Gravatar size within PHP, but I don't have a link handy at the moment.

  2. Add the avatar_size parameter to the wp_list_comments() function call, and you can specify whatever avatar size you like.

    Also, the standardized HTML is the whole point. If all comments are using similar HTML, then Search Engines can better optimize for it. In the semantic web, it pays to have the same style as everybody else. Use CSS to change the look of things.

    Still, if you must do custom HTML code, you can add a callback function to the wp_list_comments call and roll it all yourself. Google for "wp_list_comments callback".

  3. Otto said on December 15, 2008:

    Also, the standardized HTML is the whole point.

    I don't buy into that. It may be the biggest point, but I don't know about the "whole" point.

    And of course CSS can't add the "Quote Me" function, which I intend to keep.

    Otto said on December 15, 2008:

    Still, if you must do custom HTML code, you can add a callback function to the wp_list_comments call and roll it all yourself. Google for "wp_list_comments callback".

    I'll do that, thanks. I didn't have the time to get into it when I wrote this post, but will do so now.


Trackback URI | Comments RSS

Leave a Reply

Please abide by the comment policy. Valid HTML includes: <blockquote><p>, <em>, <strong>, <ul>, <ol>, and <a href>. Please use the "Quote Me" functionality to quote comments.