Creating Theme - header, footer.php files

Permalink 1 user found helpful
Can someone tell me where instructions are for creating the header and footer php files and what's included in them? Thanks.

 
Remo replied on at Permalink Best Answer Reply
Remo
there's pretty much nothing to know. Just copy these files from another theme and make sure the lines which don't look like html stay there.

- header.php needs an include to display the in-site editing toolbar
- header.php needs a special call to css to make sure the custom styles are properly parsed
- footer.php needs a php call to include the javascript statistics code (e.g. google analytics)
admin replied on at Permalink Reply
Thanks Remo. Good idea.

My theme was working without the header and footer files until I tried to install SimpleBlog. Now there's some layout issues I hope I can solve by splitting the theme up into header and footer chunks.

I'll post in the SimpleBlog thread if I can't get it to work though.

Thanks.
jordanlev replied on at Permalink Reply
jordanlev
Note that you don't NEED to have a header and footer -- these are not required by concrete5. Rather, it is simply a way to better organize your code and save you the trouble of having to change things that are the same in every template / page type file.
If you're having trouble with the layout, splitting up headers and footers will not change anything (it might make it easier to work with, but will have no effect on the HTML that is outputted).
darkhog replied on at Permalink Reply
Sorry for digging out this topic, but I want to replace boring "<My Site Name>" thing with flash logo. Do you know how to do this? Because when editing header.php and replacing contents of <h1 id="logo"> tag with my flash code div positioning (especially on pages with side navbar) get messing up. This is really strange because after parsing php code there in html source (viewable by my browser) is only <a href="/">[my site name here]</a>

Any help, please?
jordanlev replied on at Permalink Reply
jordanlev
Can you post your header.php file here so we can see it? (You may need to ZIP it or change extension to .txt before the forum allows you to upload the file).

Thanks.
darkhog replied on at Permalink Reply
Nevermind, got it. I tried to put Div inside H1. OMG, LOL, ROTFL.