Title: EASY Custom CSS based on Author
Last modified: August 18, 2016

---

# EASY Custom CSS based on Author

 *  [mediaase](https://wordpress.org/support/users/mediaase/)
 * (@mediaase)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/easy-custom-css-based-on-author/)
 * Iâ€™m not sure if this will paste correctly with the code, so hereâ€™s the link to
   the formatted instructions: [http://www.shaneeubanks.com/blog/index.php/2006/01/04/easy-custom-css-based-on-author/](http://www.shaneeubanks.com/blog/index.php/2006/01/04/easy-custom-css-based-on-author/)
 * I had been trying to figure out how to change the text (colors and such) of posts
   in WordPress based on the author and saw quite a few different ways of doing 
   itâ€¦none of which I thought were easy. Iâ€™m not sure if this has been mentioned
   elsewhere before, because I couldnâ€™t find itâ€¦so here is my two-step version. 
   Yesâ€¦two steps.
 * Now, this is going to describe how to do it with the default theme in WordPress
   2.0, but I use it with the K2 theme over at [http://www.crystalandshane.com](http://www.crystalandshane.com)
   to make my posts blue and Crystalâ€™s posts pink .
 *  1. Open index.php in the /wp-content/themes/default folder and find the line
   that says:
 *  class=â€?entryâ€?
 *  Replace it with:
 *  class=â€?<?php the_author() ?>â€œ
 *  2. Open the style.css in the same folder and add styles based on the authorsâ€™
   names. Here is how I use it for Shane and Crystal:
 *  .Shane {
    font-size: 1.4em; line-height: 1.2em; color: #393B79; }
 *  .Crystal {
    font-size: 1.4em; line-height: 1.2em; color: #9C4976; }
 *  Just save & upload those 2 files and you now have custom CSS styles based on
   the authorâ€™s name!

Viewing 1 replies (of 1 total)

 *  Thread Starter [mediaase](https://wordpress.org/support/users/mediaase/)
 * (@mediaase)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/easy-custom-css-based-on-author/#post-311699)
 * I moved the article over to [http://www.aiostudents.com/index.php/2006/05/30/custom-css-based-on-author-in-wordpress/](http://www.aiostudents.com/index.php/2006/05/30/custom-css-based-on-author-in-wordpress/)
 * I now added the custom CSS to the titles of the post in combination with CG-FlashyTitlesâ€¦.
   neat stuff.

Viewing 1 replies (of 1 total)

The topic â€˜EASY Custom CSS based on Authorâ€™ is closed to new replies.

## Tags

 * [author](https://wordpress.org/support/topic-tag/author/)
 * [custom](https://wordpress.org/support/topic-tag/custom/)

 * 1 reply
 * 1 participant
 * Last reply from: [mediaase](https://wordpress.org/support/users/mediaase/)
 * Last activity: [19 years, 10 months ago](https://wordpress.org/support/topic/easy-custom-css-based-on-author/#post-311699)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
