Results 1 to 3 of 3

Thread: Easy Navigation Changes

  1. #1
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Easy Navigation Changes

    I want to be able to easily change the navigation menu for a large website. I have found a ton of tutorials that discuss using CSS and external style sheets but I haven't been able to find a way to change or add to my navigation menu without having to change each page individually. Is there a way to make my navigation menu completely external so that I only have to change one document to change them all?

  2. #2
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    You can create a separate file, and put your menu code on it. And then you can include the file using PHP like this:
    PHP Code:
    <?php include('myfilewherethemenuis.php'); ?>
    And please don't cross-post, it's annoying and people WILL ignore your question.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  3. #3
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Php

    Sorry about the cross posting, I wasn't sure where to put it.

    I really don't know anything about php? Do I just create a html document and save it with a php extension? That sounds a bit too easy to me.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •