Title: Defining differences in a single.php
Last modified: August 19, 2016

---

# Defining differences in a single.php

 *  [tribethrow](https://wordpress.org/support/users/tribethrow/)
 * (@tribethrow)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/defining-differences-in-a-singlephp/)
 * Hey guys,
 * Got a challenge for you today. I’m designing a site for a client and they want
   a border around their content of varying colors per page. I have it now that 
   each page is actually a separate template page to create those various colors
   but now I’m running into the problem that we essentially have two blogs on the
   page, a videos blog, and a traditional blog, separated by categories (and displayed
   by categories).
 * Now we want to have it so you only get the first sentence or two of the story,
   then click the title link to read the rest of the story. When you click the title
   though, it calls up the single.php file. My question is whether or not I can 
   define in the single.php something like if post is categorized in ‘blogs’ use
   class .blog, if post is categorized in ‘videos use class .videos.
 * Any guidance? Thanks all!

Viewing 1 replies (of 1 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/defining-differences-in-a-singlephp/#post-1398507)
 * this might be useful:
    [http://www.mikemeisner.com/notebook/create-multiple-single-page-templates-in-wordpress/](http://www.mikemeisner.com/notebook/create-multiple-single-page-templates-in-wordpress/)

Viewing 1 replies (of 1 total)

The topic ‘Defining differences in a single.php’ is closed to new replies.

## Tags

 * [border](https://wordpress.org/support/topic-tag/border/)
 * [categories](https://wordpress.org/support/topic-tag/categories/)

 * 1 reply
 * 2 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/defining-differences-in-a-singlephp/#post-1398507)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
