Thanks for quick reply – and apologies, I accidentally pressed “post” before i was done.
My second question is how I make the contact form – which is a cForm – transparent (except the text fields).
Thanks again
/p
insert this condition just before the </head> tag in header.php:
<?php
if(is(page('contact')) :
echo '<style type="text/css" media="screen">
.container-inner {
background:#FFF url('.get_bloginfo('template_url').'/images/contact_bg.jpg) left top no-repeat; }
</style>';
endif;
?>
you can fine tune the background position by using positive or negative px values instead of ‘left’ and ‘top’.
to get the backgrounds in the form transparent:
http://philipus.com/wp-content/plugins/cforms/styling/wide_form.css
.cform fieldset {
margin-top:10px;
padding:10px 0 10px 0;
border:1px solid #9d9d9d9;
border-left-color:#9d9d9d;
border-top-color:#9d9d9d;
background:transparent;
}
.cform label {
width:200px;
margin:0px 10px 0 0;
text-align:left;
font-size: 10px;
display:block;
color:#888888;
background:transparent;
padding:2px;
}
Thanks for this. When i insert the condition, I get the following error:
Parse error: syntax error, unexpected ':' in /home/philipu/public_html/wp-content/themes/f8-lite/header.php on line 43
And when i remove the : I get:
Parse error: syntax error, unexpected T_ECHO in /home/philipu/public_html/wp-content/themes/f8-lite/header.php on line 44
my bad – typo:
should read is_page('contact')
<?php
if(is_page('contact')) :
echo '<style type="text/css" media="screen">
.container-inner {
background:#FFF url('.get_bloginfo('template_url').'/images/contact_bg.jpg) left top no-repeat; }
</style>';
endif;
?>
You’re a wizard – thank you!
Just so I understand: that condition sort of “separated out” the contact page for the purposes of the background within the container-inner?
Thanks once again
/p