what is the header code?
Permalink
Am going through some templates and came across this which in the web page doesn't appear to do anything.
<?php $a = new Area('Header Code'); $a->display($c); ?>
<?php $a = new Area('Header Code'); $a->display($c); ?>
it creates a new editable area
Thanks for the reply but is the word header code a key word reserved by concrete5 or just some input from the user to define their area?
The Area method defines an editable Area. Name it what you want. If I wanted to name any editable area "The Red Riding Hood", it would be:
Simple as that.
Thing is, the content is stored in a database with this name. So if you change the Theme and CHANGE these names, you will have to re-add these contents (Though I think if you go back to the other Theme the contents will still be there).
So this basically shows the "Header Code" area. Now for the PAGE you were asking...
This page has only this editable area and nothing more? Where in your website do you have ONLY the header? Maybe the home or something? You'd need to check everything, but possibly someone made this page either for a Home screen, or just as a step while writing all the code to the page, in which case they just forgot to delete this.
<?php $a = new Area('Red Riding Hood'); $a->display($c); ?>
Simple as that.
Thing is, the content is stored in a database with this name. So if you change the Theme and CHANGE these names, you will have to re-add these contents (Though I think if you go back to the other Theme the contents will still be there).
So this basically shows the "Header Code" area. Now for the PAGE you were asking...
This page has only this editable area and nothing more? Where in your website do you have ONLY the header? Maybe the home or something? You'd need to check everything, but possibly someone made this page either for a Home screen, or just as a step while writing all the code to the page, in which case they just forgot to delete this.