Defining differences in a single.php
-
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!
- The topic ‘Defining differences in a single.php’ is closed to new replies.