[SOLVED] remove header from frontpage (static page)
Atahualpa 3.4.2
My frontpage is static page. I need to remove header of this static page, in other words I need to remove this block <div class="post-headline"> from frontpage. Probably I have to edit bfa_header_config.php, but what exactly should be changed? Although Atahualpa already has a lot of settings, but I think it would be a good idea to add the ability to remove frontpage header and remove home button through theme options in admin panel, as is done in some other wp themes. |
Try this CSS Insert
HTML Code:
body.home div.post-headline { |
it's not the solution, i need to exactly remove this header from my frontpage, not hide
|
Quote:
Thanks! Steph |
Quote:
|
Quote:
|
Quote:
|
Here are the instructions for updating. It is best to use the manual update method.
To "fix" this in 3.4.9 you would probably have to use a combination of display:none and selectors for specific pages which would be a pain. There may be a plugin to accomplish this as well. |
Thank you Larry, I updated the theme and it went very good, no problems! The option for the header was exactly how you said and it worked great. Thank you for your help!
Steph |
I too would like to be able to remove the header div. The difference between removing it and hiding it or choosing not to display it is that when hidden it's still creating white space at the top of the content area? This means that my static home page contents (where I've removed the title) begins several pixels below all the other pages and this creates a 'jump' when flicking through the pages.
On a similar note, after choosing not to display the post title, I notice that aligned-right images don't quite align to the top of the body type? I've removed all image border info - is there some other hidden padding pushing the image down slightly below the top of the body text? |
On a page where I have checked box in the Atahualpa Page options to NOT display the Body Title on Single Post or Static Pages the space taken up by the title is removed. Is that what you are doing?
|
the only way to do that would be to edit bfa_header_config and add something like
HTML Code:
if (is_home() ) return; |
I also would like to remove the title from my home page. I tried using the css insert, and I also tried turning on the Use Post/Page Options and checked to not display the title on my page. They both worked, but left a space/padding where the title used to be.
I'm not sure I understand your last suggestion 'juggledad'. I tried adding that code to the bfa_header_config, but it didn't do anything. |
Just checking the box should do the trick. Do you have a link to your site. If your recently updated to 3.6.7 did you apply the three bug fixes listed in New Versions and Updating?
|
Yeah, I have the updated version with the bug fixes. Like I said, those options worked, but it left a huge space where the title was.
|
Are you saying there is NO difference in the space at the top of a page when you check to not display a title? If should reduce it by the size of the title but will not take out padding that is set in ATO>Style Posts & Pages>Post Container box for example.
|
When I remove the title on my home page, then compare that page to the rest of my pages with titles, the text baseline starts lower on the home page than it does on the other pages where the title baseline is. See here: http://www.twiddlelee.com/ Compare the home and about pages. The about title starts up higher than the text on my home page.
|
That is because there is padding built into the page independent of the title. One thing that makes that more noticeable in your case is the presence of the horbar1 (%bar1). I would first take that out and see what you think if if that doesn't look right for you then you could add the following to ATO>Add HTML/CSS Inserts>CSS Inserts to get reid of the padding on the home page.
HTML Code:
body.page-id-1001 td#middle { |
Yeah I added in the bar padding because it seemed like it needed some space on the blog pages. The css addition you provided worked great, thank you!! :)
|
All times are GMT -6. The time now is 05:29 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.