Title: Styling posts differently
Last modified: August 21, 2016

---

# Styling posts differently

 *  [danceattitude](https://wordpress.org/support/users/danceattitude/)
 * (@danceattitude)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/styling-posts-differently/)
 * Hello,
 * I am making a wordpress site with 2 different categories of posts.
    One is for
   blogs and the other is for articles. How do I style these 2 kinds of posts differently
   from each other? I want simple things like changing the colors and headers’ sizes.
   Is there an easy way to style categories of posts differently?
 * Thanks for you help

Viewing 1 replies (of 1 total)

 *  [Fabiana](https://wordpress.org/support/users/fabianapsimoes/)
 * (@fabianapsimoes)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/styling-posts-differently/#post-3938882)
 * You’ll need to use the `post_class()` function. This function will add several
   post-related classes to your posts’ main div. You can then use these classes 
   to style your post, according to your needs.
    [https://codex.wordpress.org/post_class](https://codex.wordpress.org/post_class)
 * You can see a detailed tutorial here:
    [http://www.wpbeginner.com/wp-themes/how-to-style-each-wordpress-post-differently/](http://www.wpbeginner.com/wp-themes/how-to-style-each-wordpress-post-differently/)

Viewing 1 replies (of 1 total)

The topic ‘Styling posts differently’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Fabiana](https://wordpress.org/support/users/fabianapsimoes/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/styling-posts-differently/#post-3938882)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
