Wordpress tweaks: Highlight author comments
Q: How can I highlight author comments in WP?
A: To this effect I use simple code in file comments.php:
» class=«< ? if(get_the_author_ID()==$comment->user_id) echo ’a’; ?>comment»>
Now we make two different .comment for users comments and .acomments for author comments:
« Google extra storagetexty.com »
.comment {
border-bottom: 1px dashed #CCCCCC;
}
.acomment {
margin-left: 25px;
border-left: 1px dashed #CCCCCC;
border-bottom: 1px dashed #CCCCCC;
padding-left: 6px;
color: #111;
}






english
Спасибо, в шаблонах можно посмотреть и другие примеры.
Comment by
Zenon — 11 Aug 2007 at 17:30
+1
Можно, но мне лень было перепалывать шаблоны. Лучше спросить разбирающегося человека.
Comment by
zemlanin — 11 Aug 2007 at 18:26
+0
бойан =)))
Comment by
Ar2r — 11 Aug 2007 at 20:33
+0
Неплохой ход. Все так просто, но сам не догадаешься.
Comment by
Vadim — 12 Aug 2007 at 03:28
+2
Интересная идея. Пожалуй в своем LJWatcher-е тоже такое стоит сделать :)
Comment by
Jenyay — 12 Aug 2007 at 18:07
-1
Сделайте девушке блог, пожалуйста!
Comment by
Алина Беркова(не путать с порно-актрисой) — 23 Aug 2007 at 15:38
+1