Clean up the Body class?
-
How can we clean up the body class?
I like to style lots of pages by CSS but when making different page templates i get strange body classes and most of them i can’t do anything with.
<body class="page page-id-5 page-template page-template-page-php">
This is the body class of my disclaimer template.
While i have made custom template files for this page.
like this.
page-disclaimer.php
content-page-disclaimer.php
It would be cool if WP prints something like this.<body class="page page-id-5 page-disclaimer">
Yes i could use the page-id-5 class but when you’re building and testing offline and working online page ID’s never end up on the same level.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Clean up the Body class?’ is closed to new replies.