• Hello.

    I try to highlight author comment in this theme (Avani). Everytime when I add extra .css code

    .bypostauthor .comment-body { 
    	background: #FFFEFA;
    	border-style: solid; 
    	border-width: 1px; 
    	border-color: #D0AD71;
    }

    is also making the same color for author reply comments. How to force WordPress to only highlight autor comments without any reply’s under?

    Example:
    comment

    • This topic was modified 7 years, 8 months ago by wlodi__.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author PremiumWP

    (@premiumwp)

    Just change

    .bypostauthor .comment-body

    to:

    .bypostauthor > .comment-body

    • This reply was modified 7 years, 7 months ago by PremiumWP.
    • This reply was modified 7 years, 7 months ago by PremiumWP.

    Hi
    I faced this problem too. I am using jetpack and I customised author comments with css but the replies were getting the same treatment. After googling for hours and a bunch of hit & tries I’ve found the solution. Hope it helps you or anyone else who comes stumbling on this page in the future. You just have to add > .comment-block like this:

    .bypostauthor > .comment-block {
      background: #fff7c6;
      }
    • This reply was modified 7 years, 5 months ago by blueblast.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to Highlight Author Comments (without reply’s)’ is closed to new replies.