How to change same page/post css styling from page template (background, font, etc)
+2
A:
Add a custom class to the body tag; you could even use the post name or id for this.
Inside the loop of your page.php file you could do the following:
add_filter('body_class','my_body_classes');
function my_body_classes($classes, $class) {
// add 'post-###' to the $classes array
$classes[] = 'post-' . the_ID();
// return the $classes array
return $classes;
}
hsatterwhite
2010-05-11 14:50:38
I assume that's what pablo is asking...
codedude
2010-05-11 15:00:12