Reply To: Adding class to #container

#4238
Ron
Keymaster

The <body> tag outputs classes that are unique per page and per page-template used. You can use it like this:

body.page-template-page-c-php #container {}
body.page-template-page-sc-php #container {}
body.page-template-page-cs-php #container {}
body.page-template-page-scs-php #container {}

c = content
s = sidebar

Though I’m quite unclear on what you are actually trying to do. Maybe there’s a better way.