1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: Importing html?

Discussion in 'Web Design & Development' started by Saikuron, Sep 28, 2008.

Thread Status:
Not open for further replies.
  1. Saikuron

    Saikuron Thread Starter

    Joined:
    Sep 17, 2008
    Messages:
    21
    Scenario: I have 30+ pages (html), each with a top menu navigation. If I want to add a button to the navigation, I would have to do it for each of the the 30+ html pages.

    Is there a way I can have the navigation in a separate file and include it in all my pages? (then I would only have to change one file)

    Or what would be the best way to do this? :(
     
  2. lumentec

    lumentec

    Joined:
    Mar 23, 2008
    Messages:
    103
    Use an external style sheet and use PHP to include the HTML in every page as well. You'll have to append .php to all your files and here's a tut on PHP include().
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/754295

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice