Community Forums › Forums › Archived Forums › Design Tips and Tricks › Highlighting author's comments
- This topic has 9 replies, 2 voices, and was last updated 12 years, 6 months ago by
Debra Scott.
-
AuthorPosts
-
July 28, 2013 at 2:58 pm #52999
Jummul
MemberHow do I highlight the author's comments? (how do I style the comment box anyway?)
As seen on my website http://www.acupoflife.nl the background is greenish. I'd like the comment box to have a white background and the author's comment to have a slightly different color as a background.
Anyway, I found this was doable with CSS classes as follow - which would style the author's comments in white.
.commentlist .bypostauthor { background: #fff !important; } .commentlist li ul.children li.bypostauthor { background: #fff !important; }But this doesn't seem to work, probably due to Genesis? How is this doable in Genesis? I'm working on the Pretty Young Thing theme 🙂
http://www.acupoflife.nlJuly 29, 2013 at 6:41 am #53050Debra Scott
Membertry this
.comment .bypostauthor p {
color: #fff;
}
.comment .bypostauthor {
background: #000 !important;
color: #fff;
}
need help with your business or personal website? Contact me at Fat Cat Designs
July 29, 2013 at 12:59 pm #53091Jummul
MemberWorks amazing! Thanks so much, I can handle it from here. Just one thing: what's the difference between bypostauthor 'p' and bypostauthor?
July 29, 2013 at 1:00 pm #53093Debra Scott
Memberp targets the paragraph ie what you posted
need help with your business or personal website? Contact me at Fat Cat Designs
July 30, 2013 at 3:29 am #53183Jummul
MemberAh, thanks! Really helped me on this one.
But I seem to be unable to style the author comments like I want.
I added:
.comment .bypostauthor {
background: #FFE9D6;
border-style: dotted;
border-width: 1px;
border-color: #FFBC82;
}This works amazing for when my comment is a reply to someone else, but what if my comment is a comment to the post directly? It is then styled exactly as all the other comments.
July 30, 2013 at 6:24 am #53192Debra Scott
Membercan you show me an example?
need help with your business or personal website? Contact me at Fat Cat Designs
July 30, 2013 at 8:39 am #53210Jummul
MemberI've made a test page here:
You can logon with the password 'test' to view the comments. 'Shifra' is the admin user and author of all the websites posts.
July 30, 2013 at 7:24 pm #53309Debra Scott
Membertry this
.comment-author-admin.bypostauthor,
.comment .bypostauthor {
background: #FFE9D6;
border-style: dotted;
border-width: 1px;
border-color: #FFBC82;
}
need help with your business or personal website? Contact me at Fat Cat Designs
July 31, 2013 at 12:33 am #53326Jummul
MemberWorks like a charm! Thanks a LOT! Too bad this forum doesn't have Karma.
July 31, 2013 at 6:19 am #53368Debra Scott
MemberYou're very welcome!
need help with your business or personal website? Contact me at Fat Cat Designs
-
AuthorPosts
- The topic ‘Highlighting author's comments’ is closed to new replies.