Is it possible to have different background colors for different pages?
Background colours
3 posts from 2 voices-
Posted 2 years ago #
-
Yes, the body class function gives each page / page type a unique class. If you look at the page source for the homepage you'll see that the body code looks like this:
<body id='top' class="home blog" >so you could use this CSS to define a specific background to the homepage:
body.home { background: #FFFFFF; }For a subpage, eg the Portfolio the body class looks like this:
<body id='top' class="page page-id-46 page-parent page-template page-template-default" >so you could use this code specifically for this page:
body.page-id-46 {background: #FFFFFF; }or this code for pages:
body.page {background: #FFFFFF;}This will get you started, just look at the page source for specific pages body class code. Let me know if you need further help.
Posted 2 years ago # -
Fantastico, Thanks i'll have a play about.
Loving this theme, its great! thanks for your help
Posted 2 years ago # -
Hey!
Regards,
JamesPosted 2 years ago #
Reply
You must log in to post.














