The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

MenuNavigation Structure

  • # November 10, 2012 at 3:26 pm

    I have this site:

    and basically I have for each HTML page, a navigation menu. If I make a change to a link, or make a change to the list items, I have to make sure I change them on all the HTML pages.

    Is there an easier way ?


    # November 10, 2012 at 3:32 pm

    @thesocialdiner Sure. Change your site from html to PHP and use a simple include.

    # November 10, 2012 at 3:37 pm

    Since they’re .html files, you may want to use SSI (server-side includes) to include the menu:

    This way you’ll only have to edit one file which you’re including. Although you’ll have to configure your server or .htaccess to parse .html server-side the way it would .shtml

    You could also have your server parse .html as .php, but that’s a whole other thing, and it doesn’t look like you’re looking for something too complicated.

    # November 10, 2012 at 4:06 pm

    This reply has been reported for inappropriate content.

    for me, simple edit – replace – all pages, works just fine. You can edit links, add links, etc. in all pages at once.

    # November 10, 2012 at 7:18 pm

    Wow awesome ideas. I’ll check them all out. Thank you!!!

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

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed