Using 'elements' header and footer...

Permalink
Hi,

I've built quite a few C5 sites so far but each one of them I've handcoded from scratch with html and css and then 'added' the 'editable areas'php tags by cutting and pasting etc.

I've never used a supplied theme as all my sites are unique and time consumingly 'designed' – more fool me!

As I'm starting to design 'cheaper' websites for people I was thinking of using existing themes and changing them out.

What I wanted to ask was this. Is it better to develop the website using the header.php and the footer.php inside the /elements folder?

What I've been doing is developing everything in default.php for example and then deleting most of header.php. It still gets called but there's nothing in it. I do use the footer though as there is vital login calls there.

I'm wondering if I'm making a rod for my own back here and not really using Concrete properly doing it this way, especially when it comes to a $500 website.

Does anyone have any comments about this?

Nige

nige
 
12345j replied on at Permalink Best Answer Reply
12345j
I find header and footer.php templates very useful- they're basically templates for you header and footer that you use everytime, so on this site it would inlude the c5 logo, navigation, icons at the top, and the blue bar. Using it means you can reduce the size of default.php, full.php etc, and still make your site work, because you're reducing duplicate content. For footer.php I find it much the same, it can take a lot of content out of default.php. If you only have default.php though, then header and footer.php don't make much sense.
nige replied on at Permalink Reply
nige
Thanks for that. If the aim is to take content out of the default page then I guess this makes the default page faster to load? That would definitely be good.

It's probably also a good thing to have everything split up too so you can easily see whats going on.

Cheers for that the next site I do will be utilising this way of doing things.

Nige