If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Oct 2016
    Member #

    Question Seperating Content & Headers/Menus

    Hey, everyone.

    First off, I'm new to web design, so please bare with me if this is the stupidest thing you've ever heard.

    I have a website, like many other. It has the main content of the page, and then a header with a nav bar. Pretty standard.

    So, I'm sitting here, creating new pages for my different pages, and I find myself copy-pasting the header and nav code every time I make a new page.

    This seems inefficient. So I was wondering; what's the best way to add a default header/menu and footer to every page of your website?

    Best Regards
    - Fillipuster


  3. #2
    Junior Member
    Join Date
    Jan 2017
    Member #
    1 times
    include() statement. With this technique we can include any file we want within another file. All code or text taken from the include file will be used in the main file as part of the main file. That is, the code from the include will act as if it was actually in the main file from the start.

    for futher detail how to use incluse() statement plz follow below article:

    How to automatically include your header, navigation, and footer on every page | A Padded Cell


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 05:04 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: