[SOLVED] How to remove header from posts
Hello,
I am wondering if there is any way to keep my header on the main pages but hide it on my blog posts. I am quite new to blogging and using wordpress so I don't really know anything about CSS, just tinkering around. Thanks, Zach |
You would have to fiddle with conditional statements or perhaps the Dynamic Headers plugin will work for this.
|
You could also use CSS like 'body.page_id_22 #header {display:none}'
Assuming page 22 is your blog page |
Well, at first I didn't know how to have my blob posts on a separate page but I've figured that out. The CSS insert doesn't seem to be working for me, though. Is there a particular place within the CSS Inserts field I should insert it into?
|
You can put the code anywhere in ATO>Add HTML/CSS Inserts>CSS Inserts but you have to determine the page ID of the page you don't want the header to show on. I usually do that my looking at the source code for the page and searching for "body class" you should see a page ID with the results. Or you can go to your pages section of WordPress and hover over the page in question and you should see the page ID in the bottom of your browser. There are also some plugins to show IDs of pages and posts.
|
Hmm, I do have the right page number from hovering over the link but still no luck. I don't know what the problem could be. :(
|
what is the url and exactly (do a cut and paste) did you add to the CSS Inserts?
|
The URL of the page I'd like to remove the header from is: http://www.zachschwanbeck.com/?page_id=34
I tried Code:
'body.page_id_34 #header {display:none}' Thanks guys |
For that page you would use
HTML Code:
body.blog #header { HTML Code:
</script> |
Holy cow it works!
I guess when I was figuring out how to put my blog on a separate page I maybe didn't do it quite right. Oh well, it works. Thanks so much! |
All times are GMT -6. The time now is 09:00 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.