Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   [SOLVED] Remove Background and Header from a single page (http://forum.bytesforall.com/showthread.php?t=16592)

windhover4 Jan 25, 2012 10:51 AM

[SOLVED] Remove Background and Header from a single page
 
I am using 3.7.3 to create a highly stylized art site.
http://timrayarts.com/williambraemer/

However, I need to create a blank page for content of a different nature.
http://www.timrayarts.com/williambra...epresentation/

I would like to remove the Background and Header for this Page; but continue to use all of the other theme settings.

I have searched the Forums and have tried to piece together various solutions (Illustration of my failed directions--these do not work):

/* Remove Background/Header Page ID=708 */

{body.page-id-708 {background: #ffffff;}

body.page-id-708 {div.post-headline
display: none;
}

{
html
body div#imagecontainer <if(is_page_id=708) then display; none>
}


<?php if ( is_artist_representaion_page(708) ) { ?>
td#header, td#footer {
display: none;
}

lmilesw Jan 25, 2012 12:03 PM

You have some curly braces in the wrong places. Try the first example with out the curly brace at the beginning. Also the php code won't work in 3.7.3

windhover4 Jan 25, 2012 12:27 PM

Hey, thanks!

Entered the following:

body.page-id-708 {background: #ffffff;}

body.page-id-708 {div.post-headline
display: none;

Background now removed, but Header remains:

See: http://www.timrayarts.com/williambra...epresentation/

juggledad Jan 25, 2012 12:36 PM

Quote:

body.page-id-708 {div.post-headline
display: none;
Missing closing curly bracket, begining one is in the wrong place

windhover4 Jan 25, 2012 12:51 PM

Encouraged, but not sure where {}'s go

This revision has same result / No background, but still have header:

body.page-id-708 {background: #ffffff;}

body.page-id-708div.post-headline
{display: none;}

See: http://www.timrayarts.com/williambra...epresentation/

Please :)

windhover4 Jan 25, 2012 01:19 PM

Quote:

Originally Posted by juggledad (Post 79396)
Missing closing curly bracket, begining one is in the wrong place

I have added closing bracket, and tried every option for beginning one. No result.

Could it be that this is attempting to remove the Page Title, and not the HEADER?

juggledad Jan 25, 2012 02:45 PM

CSS statements are two parts, the selector then the rules. The rules are in the {...} and each must have a ';' at it's end.

Figuring out what CSS selectors to use is where FireBug in FireFox comes in handy, or you can look at the source of the page to find the area you want to get rid of and see the HTML and ID/classes envolved.

Once you wander beyond the realm of just using a theme (ie you want to tweek it), you have to learn CSS so you can make the changes you want

w3schools.com/css is a great reference

windhover4 Jan 25, 2012 03:11 PM

My question is: Can I delete the Header on a single page?

Quote:

Originally Posted by juggledad (Post 79402)
CSS statements are two parts, the selector then the rules. The rules are in the {...} and each must have a ';' at it's end.

Figuring out what CSS selectors to use is where FireBug in FireFox comes in handy, or you can look at the source of the page to find the area you want to get rid of and see the HTML and ID/classes envolved.

Once you wander beyond the realm of just using a theme (ie you want to tweek it), you have to learn CSS so you can make the changes you want

w3schools.com/css is a great reference


windhover4 Jan 25, 2012 05:00 PM

Solved:

/* Remove Background & Header Page ID=708 */

body.page-id-708 {background: #ffffff;}

body.page-id-708 div#imagecontainer {display: none;}

Thank for your help :)


All times are GMT -6. The time now is 07:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.