This is a discussion on Global footer like adobe.com & apple.co within the Coding Help forums, part of the Webmaster Help category; We are trying to create a global footer on every page of a 100 page website We want to update ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| We are trying to create a global footer on every page of a 100 page website We want to update the global footer once a month and it a automatically updates on each of the pages similar to adobe.com & apple.com where they have a global footer What is the best way to do this, HTML, CSS, Java script? pHp include / dynamic – but we are not sure how the search engines view this thanks in advance Last edited by garymcginty; 28-03-2008 at 01:21 PM. Reason: content |
| |||||
| I agree with GoodShape, on mysites i have a function for the header and footer of the site so they are called on every page, so when i make a change it effects all pages! Re-use of code is the only way to code! |
| ||||
| includes are the way .... and while you are at it you can do a header , statistics section, navigation section, anything you want. I built a whole site this way before C.M.S became popular and i had an includes file that i included in every page of the site. in that includes file, all the includes were defined like define("FOOTER", "footer.inc.php"); define("HEADER", "header.inc.php"); define("WHATEVER", "section-of-code.inc.php"); so anytime i wanted a section on the page I could just write include FOOTER; include HEADER; include WHATEVER; meant i could make a change to one of the .inc.php pages and have it duplicate accross the site, and of course you could stick in a section of code, or move it etc quite easily by just moving 2 words and a semicolon |