Again, I don’t know why you think that that code can add only one class.
function comment_add_whatever($classes) {
$classes[] = 'top';
$classes[] = 'bottom';
$classes[] = 'left';
$classes[] = 'right';
$classes[] = 'sideways';
return $classes;
}
add_filter('comment_class','comment_add_whatever');
Also, your top and bottom thinking *won’t work*. Just by them having two classes doesn’t make it two different things. What’s more, you don’t NEED to add any classes to reference them in CSS. This is plainly obvious if you understood CSS at all. A simple .commentlist li
references all the comments. Adding useless “top” and “bottom” classes to them doesn’t help you in any way. Those CSS names are *arbitrary*. They have no inherent meaning.
I highly suggest you learn a bit more PHP, HTML, and CSS before attempting this. It just seems a lot like you’re in over your head here. You’ve made several basic and fundamental errors in this thread, and I just don’t think you understand enough about web design to do this sort of thing.