Title: Theme missing ids and classes
Last modified: August 21, 2016

---

# Theme missing ids and classes

 *  [andy3000](https://wordpress.org/support/users/andy3000/)
 * (@andy3000)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/theme-missing-ids-and-classes/)
 * Yesterday I was asked to target the css of one page only on a site. I got a surprise–
   the body tag did not start like you would expect <body class=”page page-id-302
   etc.
    The class was totally missing, so I couldn’t use css and had to use a work
   around. I know the day will come when I can’t find a work around for this situation
   or talk someone into changing their theme. Where is the class code usually generated?
   I’d like to look at it to see how I’d go about adding it into this type of mess.

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/theme-missing-ids-and-classes/#post-4186416)
 * [http://codex.wordpress.org/Function_Reference/body_class](http://codex.wordpress.org/Function_Reference/body_class)
 *  Thread Starter [andy3000](https://wordpress.org/support/users/andy3000/)
 * (@andy3000)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/theme-missing-ids-and-classes/#post-4186439)
 * Thanks. I should have looked in the header. They had
    <body> instead of <body
   <?php body_class(); ?>>

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

The topic ‘Theme missing ids and classes’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [andy3000](https://wordpress.org/support/users/andy3000/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/theme-missing-ids-and-classes/#post-4186439)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
