Title: styling post_types differently
Last modified: August 22, 2016

---

# styling post_types differently

 *  Resolved [simba1985](https://wordpress.org/support/users/simba1985/)
 * (@simba1985)
 * [11 years ago](https://wordpress.org/support/topic/styling-post_types-differently/)
 * Hello,
 * I’d like to adapt the theme so that some post_types are using a differently coloured
   category tag in my blog-roll. I have tried to adapt the content.php file but 
   failed.
 * Any pointers how I can introduce a conditional check for a particular post_type?
 * Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Theme Author [shufflehound](https://wordpress.org/support/users/shufflehound/)
 * (@shufflehound)
 * [11 years ago](https://wordpress.org/support/topic/styling-post_types-differently/#post-5955085)
 * Hello,
 * What do you mean with post_types in blog?
 *  Thread Starter [simba1985](https://wordpress.org/support/users/simba1985/)
 * (@simba1985)
 * [11 years ago](https://wordpress.org/support/topic/styling-post_types-differently/#post-5955094)
 * Sorry, I wasn’t specific enough, but I’ve also learned a bit more about my set-
   up over here.
 * Basically, my blog used a plug-in to download all my Tweets. Tweets are stored
   as custom post type. It’s indicated by “aktt_tweet” in the “post_type” collumn
   in the wordpress database table.
 * I would like to modify the Maskitto Light theme so that all tweets (associated
   with this post type) are (1) first of all displayed alongside my other posts 
   and (2) that the colour for the category tag is changed to blue for each of these
   posts.
 * Does this make sense?
 *  Theme Author [shufflehound](https://wordpress.org/support/users/shufflehound/)
 * (@shufflehound)
 * [11 years ago](https://wordpress.org/support/topic/styling-post_types-differently/#post-5955122)
 * This is pretty advanced function and at this moment we can only guide you where
   to look.
 * 1. If you want to show twitter posts beside standard posts you will need to modify
   following files, while adding custom function to get necessary posts:
    * inc/
   widgets/sh-blog.php – to modify posts for page builder widget * index.php – to
   modify posts for main blog page * archive.php – to modify posts for blog categories
   page
 * 2. Under content.php you will need to modify code lines under `<?php if( count(
   $category) && $category_name ) : ?>` by adding if statement for post type.
 *  Thread Starter [simba1985](https://wordpress.org/support/users/simba1985/)
 * (@simba1985)
 * [11 years ago](https://wordpress.org/support/topic/styling-post_types-differently/#post-5955306)
 * Thank you shufflehound, that’s done it for me. I also modified the style.css 
   file for slight changes to the way twitter posts were displayed. It’s looking
   quite nice now.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘styling post_types differently’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/maskitto-light/3.4.0/screenshot.
   png)
 * Maskitto Light
 * [Support Threads](https://wordpress.org/support/theme/maskitto-light/)
 * [Active Topics](https://wordpress.org/support/theme/maskitto-light/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/maskitto-light/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/maskitto-light/reviews/)

## Tags

 * [Theme modification](https://wordpress.org/support/topic-tag/theme-modification/)

 * 4 replies
 * 2 participants
 * Last reply from: [simba1985](https://wordpress.org/support/users/simba1985/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/styling-post_types-differently/#post-5955306)
 * Status: resolved