• 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

Change background color of comments by post author – Genesis Sample

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 › Change background color of comments by post author – Genesis Sample

This topic is: resolved

Tagged: genesis sample comments

  • This topic has 4 replies, 3 voices, and was last updated 11 years, 3 months ago by lostintime.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • April 7, 2014 at 10:27 am #98897
    cstreet
    Member

    Anyone know off hand how to change the background color of a comment by the author of a post (or better yet, a site administrator)?

    I tried

    .bypostauthor {
    background-color: COLOR CHOICE
    }

    but it does not seem to be doing the trick.

    April 8, 2014 at 12:15 am #99010
    Davinder Singh Kainth
    Member

    Add this to your style.css file

    .comment-author-admin {
    background: #ddd !important;
    }

    You can change ddd color code to any color of your choice


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    April 8, 2014 at 6:35 pm #99235
    cstreet
    Member

    Thanks Davinder,

    It actually took this to work:

    .comment-author-USERNAME {
    background-color: #ddd !important;
    }

    Thanks again!

    April 8, 2014 at 11:13 pm #99296
    Davinder Singh Kainth
    Member

    Glad you got it working.


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    May 8, 2015 at 12:23 pm #150980
    lostintime
    Member

    Thanks guys!

    One question though: This css code will also change the background color for any *nested* comments (replies to the post autor's comments). Is there any way around this? I would like for those to appear with the standard background.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and 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