• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Highlighting author's comments

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Highlighting author's comments

This topic is: resolved
  • This topic has 9 replies, 2 voices, and was last updated 12 years, 6 months ago by Debra Scott.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • July 28, 2013 at 2:58 pm #52999
    Jummul
    Member

    How 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.nl
    July 29, 2013 at 6:41 am #53050
    Debra Scott
    Member

    try 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 #53091
    Jummul
    Member

    Works 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 #53093
    Debra Scott
    Member

    p 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 #53183
    Jummul
    Member

    Ah, 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 #53192
    Debra Scott
    Member

    can 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 #53210
    Jummul
    Member

    I've made a test page here:

    Uitslagen enquête A Cup of Life

    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 #53309
    Debra Scott
    Member

    try 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 #53326
    Jummul
    Member

    Works like a charm! Thanks a LOT! Too bad this forum doesn't have Karma.

    July 31, 2013 at 6:19 am #53368
    Debra Scott
    Member

    You're very welcome!


    need help with your business or personal website? Contact me at Fat Cat Designs

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Highlighting author's comments’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble