I'm building a template for twentyten child theme. I need to add a class in in the template page, but not in other pages.My template inherits the header and footer, so, I can't change any markup there. How can I add a class in there without adding that class to other pages? Thanks a lot for the help.
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
You're probably looking for something like this:
make sure you add |
|||||
|
|
.page-template-yourtemplatename-php #main { ... }– Michael May 28 '11 at 21:09