Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to get something of everypages ?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #42067
    gdumas25
    Member

    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

    #121304
    chrisburton
    Participant

    @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





    Title of Page



    menu.php

    footer.php

    © 2013


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


Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.