Give help. Get help.

  • # January 17, 2013 at 6:06 pm

    Hi !

    Im totally new to website design, and I have a time consuming problem.

    I have put a few things on the main page of my website (logo, the menu and some other things) and would like know how I can “copy” all this on All the pages of the website, so the update would be simultaneous (when I do)….

    Im using the hostgator tool.

    Sorry if it’s not the right place for that kind of question.. :S

    # January 17, 2013 at 6:22 pm

    @gdumas25 You would have to use php on all the pages and use include on those pages.

    So you would create a header.php and maybe a menu.php, paste the html in those files.

    So your header.php might look something like this

    < !Doctype html>

    Title of Page



    © 2013

    From there you would just use include in your template files (about.php, contact.php or index.php if you have page folders).

    < ?php include 'header.php'; ?>
    < ?php include 'menu.php'; ?>

    < ?php include 'footer.php'; ?>

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.