As we know, Blogger's default comments come very simply, both in terms of features and appearance.
As we know, Blogger's default comments come very simply, both in terms of features and appearance. So modifications are necessary if you want to make it look even better.
This time we will make a simple modification to Blogger's default comments column. Like the previous tutorial on adding admin alerts in Blogger comments, this method only works on original default comments.
If the modified tripled comments (threaded comment hack) are usually added there by the template creator. Not to mention the name of the id or class that may be different so it cannot use any script.
Change the Background Color of Author Comments in Blogger
Add this jQuery code first. I think you already understand where to save it. Just paste it into an existing set of scripts. This means that it is stored ABOVE or before the closing tag </script>.
[/* Highlight Author Comments by tipricks.com */
(function(){$('.user.blog-author').closest('.comment-block').addClass('comeAdmin');})();]
The simple jQuery above works to give a different class name to the admin comments.
After that, the appearance can be changed. Add the following CSS code.
[/* Highlight Author Comments by tipricks.com */
.comeAdmin{
background-color:#d9ffc9;
border:1px solid #9bd084;
padding:10px;
margin-bottom:10px;
}]
Please change the CSS code yourself if the final result does not match the template.
If you don't add background colors in this Blogger admin comment it doesn't work in your template, write it down in the comments column below and include the blog address, I'll help check later. It is possible you use a template that has been modified so that the name id or class is different from the one written above.
This article "Give a Different Background Color (Highlight) to Admin Comments in Blogger" is protected by
COMMENTS