How to add own header / footer?

I am looking for some basic guidance on how to incorporate Zenphoto (which looks fantastic, btw) into my webtemplate (stick it between the header and the footer).
I have tried to find this in the forums, but I couldn't. So pardon me if it has been answered already. By way of background, last time I designed anything in html/asp/vb/js was in 2003. It looks like things changed from tables to div's, etc. (What I am trying to say I understand the basics but not php).

So here are the questions:

1. Do I need to create my own webpage and then insert the commands from index.php?
2. Or do I need to modify index.php? If so, will I have to have PHP spit the header and the fooer or I can do plain html?
3. What about the index.php page in the themes/default folder? (using default theme) Is that the one I need modify instead?

All comments are GREATLY appreciated!

Comments

  • Ok after some research, I realize that "themes" and "theming" is the answer. So whoever is looking to incorporate Zenphoto into his or her own website should check those sections/topics out. It may seem obvious for some of you, but for the rest of the folks out there, theming means actually making themes for others for fun or profit.

    Check this link out: http://www.infobulles.ch/syndication/ZenPhoto_Gallery/2006/09/15/How_to_Make_a_ZenPhoto_Theme__updated_
  • acrylian Administrator, Developer
    That link is old and outdated! The easiest is to look at the included default theme. If you have some knowledge about web design, the basic elements are not that hard to find since all functions sort of named after what they do. Further information about theme functions please see here: www.zenphoto.org/documentation/index.html
  • Have look at my site. If what I've done (called up the header and footer) is what you are talking about let me know and I'll let you know how I did it.
  • Pierrot, did you use a common header/footer across your site? and if so how do you do this? Thanks.
  • acrylian Administrator, Developer
    Actually that is really easy, just make a php file called header.php with the general header code and then call it with `<?php include("header.php"); ?>`in you theme (with the right path of course).
  • I'm not an expert but I can tell you what I did...

    Primarily, I used this tutorial and then made the changes to the css file. I initially thought that the Zenphoto part of my site would still be under the rule of the it's theme css. This wasn't the case though - and every change I wanted to make in my gallery had to be made through my Wordpress theme css. I don't know why this was the case or whether it matters (Acrylian, perhaps you can answer that?) but it worked so I went with it.

    Ultimately, what this meant was that I had to move some chunks of my ZP css to my WP file. I'm so new to this and tend to panic anytime I have to do something which involves more than 2 steps so I designed it all locally first using CSSEdit and TextWrangler. I worded with an entire copy of the ZP Default theme, which I renamed Default2, then just uploaded that and the new WP theme css.

    That's it. It functions well.

    Let me know if I can help in any way,

    P
Sign In or Register to comment.