.commentlist .bypostauthor {background: #e7f8fb;}
.commentlist li ul.children li.bypostauthor {background: #e7f8fb;}
This code works, but there is a problem. If the guest responded to admin, the background color is different.
screenshot: https://i.imgur.com/v0gTM9z.jpg
How can I fix this? It should only be admin. thanks
]]>After making sure I had all the comments, I have recently disabled the Disqus plugin. In checking to see that the comments did indeed migrate, I learned that none of the comments that I made are obeying the .commentlist .bypostauthor
css rules in my Twenty Twelve child stylesheet.
I’m guessing that the change might be done by making sure the IP address as well as the name and email address matches mine. But there appears to be no way to change the IP address, short of reposting the comments and editing the timestamp to reflect those that were in the Disqus threads.
Could someone point to a place that outlines how to change my comments (retaining their reply-to positions in the comment threads) to show that they are from the postauthor?
Thank you for any help you can provide.
E Morris, b l o g f r o m O U R k i t c h e n | e t h e r w o r k D O T n e t S L A S H b l o g <=== purposely left unlinked in an attempt to keep idiots at bay
]]>I want to highlight the author comments, with maybe another background color of the div or maybe some other color on the author name.
Since I’m not so fancy at this stuff I cant solve it, do anyone know how I can fix it?
https://pastebin.com/4aFW50Gv
]]>I’m using a customized theme and it doesn’t have the possibility to distinguish the comments made by the author of the post (like by adding the .bypostauthor class for example).
I’m trying to find the code line that would permit me to add such a class. I think it’s present in the twentyten theme, probably in the twentyten_comment function, but I can’t spot it, can you help me please ?
Here is the code of the twentyten_comment function:
]]>I don’t really understand how I can target only the .bypostauthor without any nested replies being targeted.
How would you guys solve this?
Where would you put the <div class=”banner”></div> line?
How would you target it with CSS to avoid nested replies to also get the div?
Thanks!
]]>When i am logged in while posting a comment, WP automatically adds the class bypostauthor to my comments. Why this doesnt work when i am logged off while posting a comment but filling in the comment form with the same data as the postauthor (same e-mail & name)?
]]>I’d be happy to post my comments.php, specific CSS, etc. as well, if desired. Here’s the post & comments in question (Chris is the author):
https://bit.ly/crUPVP / https://chrisburnell.com/blog/2009/08/incoming/#comments
]]>I am working on the comments right now, and trying to make the post author and the user comments look different. I want to use .bypostauthor and .byuser, but when I test it on the browsers, no change is made. The comments look fine, there just aren’t any of the user or author styles showing up.
Does anyone know what I’m doing wrong? Any help would be appreciated.
#respond p {
font-size: .9em;
}
#respond label {
margin: 5px 0 5px 0;
}
#comment {
width: 100%;
}
#commentform {
padding: 10px;
}
.thread-even {
background-color:#FFFFF;
}
.thread-odd {
background-color:#FFFFFF;
}
.commentlist li, #commentform input, #commentform textarea {
font: 0.9em 'Georgia', Times New Roman, Serif;
}
.commentlist li ul li {
font-size: 1em;
}
.commentlist li {
font-weight: bold;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #990000;
padding: 20px;
}
.commentlist li .bypostauthor {
color: #FFFFFF;
background-color: #000000;
}
.commentlist li .byuser {
color: #330066;
background-color: #E2ECF5;
}
.commentlist li .avatar {
float: right;
border: 1px solid #eee;
padding: 2px;
background-color: #FFFFFF;
}
.commentlist cite, .commentlist cite a {
font-weight: bold;
}
.commentlist p {
font-weight: normal;
line-height: 1.5em;
text-transform: none;
}
#commentform p {
font-family: 'Georgia', Times New Roman, Serif;
}
.commentmetadata {
font-size: 0.8em;
border-bottom-width: 1px;
border-bottom-style: dotted;
border-bottom-color: #00000;
}
]]>The problem is that after the XML import, this distinction must have gotten lost – I’m obviously using the same style sheet, but my comments now look like those of a regular user.
So my question would be, is there any way that I could re-assign my comments to that of the post author?
Any help would be appreciated greatly!
]]>