Title: how to theme question
Last modified: August 20, 2016

---

# how to theme question

 *  [erwin_m](https://wordpress.org/support/users/erwin_m/)
 * (@erwin_m)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/how-to-theme-question/)
 * I want to setup two sites in one wp-installation. The sites have the same theme,
   but another use of color by css. Entering the domain, you’ll come on a landingpage
   with the possibility to choose one or the other.
    How can I realize this? Is 
   it possible to sign a different style1.css to lets say 6 pages? And let the other
   be default.

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

 *  [zeaks](https://wordpress.org/support/users/zeaks/)
 * (@zeaks)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/how-to-theme-question/#post-2662824)
 * You can do this using the body class [http://codex.wordpress.org/Function_Reference/body_class](http://codex.wordpress.org/Function_Reference/body_class)
 * Use firebug to examine the pages and find the proper body class for the pages
   you want to look different. Then use that body class along with your custom style.
 *  Thread Starter [erwin_m](https://wordpress.org/support/users/erwin_m/)
 * (@erwin_m)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/how-to-theme-question/#post-2662828)
 * Ok, that could be a possibility. Don’t have designed the layouts already. So 
   for now, I would like to have a lot of freedom in the possibilitys. Adding a 
   class doesn’t give the same possibilitys as a other stylesheet. Or am I missing
   something?
 *  [zeaks](https://wordpress.org/support/users/zeaks/)
 * (@zeaks)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/how-to-theme-question/#post-2662834)
 * It does give the same possibilities as far as I know. For example, say I wanted
   to style the title of the default page template differently than the index blog
   posts title and other page templates
 * For Twenty Eleven I could use..
 * .page-template-default .entry-title {border: 1px solid #000;}
 * Then only on the default page template would that style be used. You can do the
   same for categories, page templates, page ids etc etc.
 * I used this method when creating different layouts for my twenty eleven theme.
   Using a body class I could totally change how the sidebars are positions, left
   and right, 2 left, 2 right, 1 left, 1 right.
    Then when that body class is selected,
   it displayed the proper layout.
 * Taking it a bit further I could even have a left and right sidebar on the index,
   then only 1 on any other page.
 * There’s lots of possibilities with CSS and body classes.
 * By using separate stylesheets, all you’re really doing is using different CSS
   for certain elements, which is exactly what body classes are for.
 *  Thread Starter [erwin_m](https://wordpress.org/support/users/erwin_m/)
 * (@erwin_m)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/how-to-theme-question/#post-2662836)
 * So you’re just adding a class to the already excisting classes to edit that class
   for the other layout. Thats indeed a simple solution> I’ll try this one.
    Thanks!
 *  [zeaks](https://wordpress.org/support/users/zeaks/)
 * (@zeaks)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/how-to-theme-question/#post-2662839)
 * Exactly, it’s really easy to use once you figure out the body classes. Firebug
   lets you view them all.
 *  Thread Starter [erwin_m](https://wordpress.org/support/users/erwin_m/)
 * (@erwin_m)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/how-to-theme-question/#post-2662841)
 * When I look at another site of mine with firebug, I see the next bodyclass: <
   body class=”home page page-id-74 page-template page-template-page-t-n-nf-php”
   data-twttr-rendered=”true”>
 * Do I add the whole thing without the data thing?
 *  [zeaks](https://wordpress.org/support/users/zeaks/)
 * (@zeaks)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/how-to-theme-question/#post-2662933)
 * No, jut pick one of those classes. Page-template-default would change all of 
   the default page tempates, page-id-74 would only change that single page, home
   would change the index, page would change any page template.

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

The topic ‘how to theme question’ is closed to new replies.

 * 7 replies
 * 2 participants
 * Last reply from: [zeaks](https://wordpress.org/support/users/zeaks/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/how-to-theme-question/#post-2662933)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
