Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

[SOLVED] How to remove header from posts


  #1  
Old Dec 6, 2010, 06:14 PM
ZachS
 
5 posts · Dec 2010
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
  #2  
Old Dec 6, 2010, 07:03 PM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
You would have to fiddle with conditional statements or perhaps the Dynamic Headers plugin will work for this.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Dec 6, 2010, 09:15 PM
juggledad's Avatar
juggledad
 
23,597 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You could also use CSS like 'body.page_id_22 #header {display:none}'
Assuming page 22 is your blog page
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #4  
Old Dec 7, 2010, 03:01 PM
ZachS
 
5 posts · Dec 2010
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?
  #5  
Old Dec 7, 2010, 03:06 PM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
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.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #6  
Old Dec 7, 2010, 05:31 PM
ZachS
 
5 posts · Dec 2010
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.
  #7  
Old Dec 7, 2010, 07:24 PM
juggledad's Avatar
juggledad
 
23,597 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what is the url and exactly (do a cut and paste) did you add to the CSS Inserts?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #8  
Old Dec 9, 2010, 09:12 PM
ZachS
 
5 posts · Dec 2010
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}'
along with a lot of other combinations. I tried pasting it in at the start of and also at the end of the CSS Inserts field. I am now on 3.5.3 if that helps.

Thanks guys
  #9  
Old Dec 9, 2010, 10:26 PM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
For that page you would use
HTML Code:
body.blog #header {
display: none !important;
}
The way I determined that was to look at the page source and do a search for "body class" without the quotes. the result showed the following. I have included a few other lines for context.
HTML Code:
</script>
</head>
<body class="blog">
<div id="wrapper">
<div id="container">
which told me the class of the page was blog. Then I just added the id of header.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #10  
Old Dec 10, 2010, 11:19 AM
ZachS
 
5 posts · Dec 2010
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!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
in the header how do i remove comments and posts bjorn Header configuration & styling 8 Aug 14, 2010 06:28 AM
How to remove link to individual posts in post title? kristofferrom Center area post/pages 3 Apr 29, 2010 12:14 PM
Help: how i can remove some widgets(?) from specific posts maurixx Center area post/pages 1 Jan 28, 2010 07:25 PM
[SOLVED] Remove footer from specific posts jmdr Post-Kicker, -Byline & -Footer 4 Nov 25, 2009 11:35 AM
[SOLVED] Cannot remove content above posts qualitynetworkers Post-Kicker, -Byline & -Footer 2 Oct 14, 2009 07:43 AM


All times are GMT -6. The time now is 12:26 PM.


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