When the blog admin left a comment on his blog, By default WordPress use the name in the comment css class. This is useful for styling, but it will also let people know about your admin login name. If you don't want it read it out.
This code simply have to be pasted in your functions.php file to work:
function remove_comment_author_class( $classes ) {
This code simply have to be pasted in your functions.php file to work:
function remove_comment_author_class( $classes ) {
foreach( $classes as $key => $class ) {
if(strstr($class, "comment-author-")) {
unset( $classes[$key] );
}
}
return $classes;
}
add_filter( 'comment_class' , 'remove_comment_author_class' );
If you enjoyed this article, please consider sharing it!