Title: adding more classes
Last modified: August 22, 2016

---

# adding more classes

 *  Resolved [xarmyman](https://wordpress.org/support/users/xarmyman/)
 * (@xarmyman)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/adding-more-classes/)
 * hello, i have to add more classes to my sidebar so i can use them to style each
   page with different color sidebar in .css . How can add extra id’s or classes
   to wordpress site?
    my site [http://bcdadvies.nl/bouwfysica/](http://bcdadvies.nl/bouwfysica/)

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

 *  [janet4now](https://wordpress.org/support/users/janet4now/)
 * (@janet4now)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/adding-more-classes/#post-5299321)
 * You probably don’t need to add classes, but it really depends on what exactly
   you’re trying to do and what classes are there now.
 * To target a specific page, use the body class along with the sidebar class.
 * Make sense?
 *  [janet4now](https://wordpress.org/support/users/janet4now/)
 * (@janet4now)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/adding-more-classes/#post-5299325)
 * Also, the child theme path is showing oddly in the head tag. What did you name
   your child theme folder EXACTLY? Did you use any special characters or something?
 *  Thread Starter [xarmyman](https://wordpress.org/support/users/xarmyman/)
 * (@xarmyman)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/adding-more-classes/#post-5299355)
 * i named it Origin – Child
 * basically i need the sidebar to be in different color on each page. So usualy
   i would just add classes to my div and then use them in .css but i dont know 
   how to do that in wordpress.
 *  [janet4now](https://wordpress.org/support/users/janet4now/)
 * (@janet4now)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/adding-more-classes/#post-5299365)
 * remove the spaces from your Origin-child folder.
 * And find the body class that is unique to each page and change your color accordingly.
 * For example:
 *     ```
       body.singular-page-12 #sidebar-primary {
       background: none repeat scroll 0 0 #333;
       padding-left: 40px;
       }
       ```
   
 * controls the color on the “comforts” page only.
 *  Thread Starter [xarmyman](https://wordpress.org/support/users/xarmyman/)
 * (@xarmyman)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-more-classes/#post-5299466)
 * Thanks, a lot janet4now 🙂

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

The topic ‘adding more classes’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [xarmyman](https://wordpress.org/support/users/xarmyman/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/adding-more-classes/#post-5299466)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
