• Resolved ferrel

    (@ferrel)


    Recently I managed to get my new theme together on epicslant.com. I switched to the “threaded comments” via wordpress itself (IE no plug in) and special comment colors for authors.

    It works for the most part until I looked one day and realized that the replies to author comments receive the same color as the author. I’m trying to ensure that doesn’t happen. For the most part I’ve done alright until I get to the .comment-author. No matter what I do either the author gets the default setting or the replying user gets the author setting.

    Any thoughts? Example of issue: http://www.epicslant.com/2009/08/what-is-content/#comments

    Here is my CSS

    li.bypostauthor  .comment-author  {
    	margin: 0;
    	height: 40px;
    	padding: 0px 0px 0px 0px;
    	background: #6699FF url(images/bluefade2.jpg) repeat-x /* !important */;
    	display: block;
    	}
    
    li.bypostauthor {
    	background: #6699FF;
    	}
    
    .comment-author  {
    	margin: 0;
    	height: 40px;
    	padding: 0px 0px 5px 0px;
    	background: #ffffff url(images/silverfade.jpg) repeat-x;
    	display: block;
    	}
    
    .comment img {
    	padding: 0px;
    	float: left;
    	}
    
    .fn {
    	float: left;
    	padding: 10px 5px 10px 10px;
    	}
    
    .fn a {
    	color: black;
    	font-weight: 800;
    	text-decoration: none;
    	}
    
    .says {
    	float: left;
    	padding: 10px 10px 10px 0px;
    	}
    
    #respond textarea {
    	width: 652px;
    	}
    
    .children {
    	padding-left: 35px;
    	background: #ffffff;
    	}
    
    ul.children .comment-author  {
    	margin: 0;
    	height: 40px;
    	padding: 0px 0px 5px 0px;
    	background: #ffffff url(images/silverfade.jpg) repeat-x;
    	display: block;
    	}	
    
    .reply {
    	padding: 0px 0px 15px 15px;
    	}

    Any help would be great

Viewing 7 replies - 1 through 7 (of 7 total)
  • Looks like you nailed it. The key class is .bypostauthor.

    Thread Starter ferrel

    (@ferrel)

    It seems like it -should- work as intended but the .comment-author still shows incorrectly. The .comment-author should be blue in everything, including replies. If I force it then all of a sudden the user who replies get that color.

    As I have it now the articles author gets the standard bar in replies but a blue body text. It is alright but not exactly my hope.

    So you’re trying to get a different header bar as well? Have you tried styling on .bypostauthor > .comment-author?

    Thread Starter ferrel

    (@ferrel)

    Yes, ideally the authors would have a different bar than the regular users. I thought my first style would take care of that and it does on anything but a reply. It is just an issue during the replies to an authors comment.

    Thread Starter ferrel

    (@ferrel)

    Any other thoughts on this?

    Thread Starter ferrel

    (@ferrel)

    Alright, let me rephrase this a bit because I know it can be done.

    Basically I want to ensure that in both replies and regular posts that users look the same. I also want authors to look the same in replies in regular posts.

    What is happening at the moment is that the .comment-author (which is the header) cannot differentiate between users and authors on replies (ul.children).

    Does anyone know how to style the .comment-author class different for authors vs users?

    Thread Starter ferrel

    (@ferrel)

    Finally figured it out! I was just over thinking it. Added my fade to the background of the comments instead of the heading.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Author comments with replies incorrectly styled’ is closed to new replies.