- This topic has 2 replies, 2 voices, and was last updated 4 years, 5 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support › Forums › Sunshine Pro Theme › how to make a white background only on inner post and pages?
I would like to get a white (#fff) background on all inner content, all pages and posts. I have this site: http://bayern.lindebjerg.de/ with a small background tile pic, but on all the inner content I would like a white background.
Something like this:
background-color: #fff;
padding: 25px;
margin-bottom: 25px;
But how can I make this on only inner content, not on the homepage?
Best Regards,
Jesper
Add this PHP script in functions.php file
add_filter( 'body_class', 'sunshine_add_body_class' );
function sunshine_add_body_class( $classes ) {
if( ! is_front_page() ) {
$classes[] = "inner-page";
}
return $classes;
}
Now add this CSS in your style.css file
body.custom-background.inner-page {
background-image: none!important;
}
Thank you Paul, it rocks;-)