Skip to content

Instantly share code, notes, and snippets.

@indeedably
Last active August 19, 2018 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indeedably/6b8bc61b56bdc67ef81e729ef5bca0b9 to your computer and use it in GitHub Desktop.
Save indeedably/6b8bc61b56bdc67ef81e729ef5bca0b9 to your computer and use it in GitHub Desktop.
How to highlight author comments in Wordpress
/*
Styling the bypostauthor CSS class allows author comments to stand out.
Apply the style via the Wordpress theme customiser:
1. Open your site's Wordpress Dashboard
2. Select the Appearance / Customise menu item
3. On the Customise screen select the Additional CSS menu item
4. Paste the code snippet below, and modify to blend with your theme.
*/
.bypostauthor {
background: #e7e7e7;
border: 1px solid #3bc492;
padding: 0.25em;
}
@indeedably
Copy link
Author

Sample output here:

how to highlight author comments in wordpress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment