views:

40

answers:

1

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
I assume that's what pablo is asking...
codedude