/    Sign up×
Community /Pin to ProfileBookmark

horizontal menu

Hello,
I’m redesigning a website for work and I would like to move from a vertical menu to a horizontal menu. My problem is that this site has some 100, I’m guessing, pages with the menu in every one. I don’t want to have to go to each and every page and add the menu code. the way we have it set up now, with the vertical menu, is that it grabs it from a java file. I was wondering if there is a way to do this but with a horizontal menu.
The site I’m working on is [url]www.oldcrow.ca[/url] [url]www.oldcrow.ca/index2.htm[/url], if you want to skip the splash page.

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@PBSWebDesignMar 06.2012 — I do server side includes to add my constant information to multiple web pages. something along the line of

[code=php]
include('path/to/file.php');
[/code]


Put your nav code into a separate file, it can be php or html it doesn't matter and add this bit of code on the page where you would like to have the nav bar appear. Remember to add <?php ?> tags before and after the snippet above. The benefit to this is that once all the pages have this snippet on them when you update the seperate include file then it will update across all the pages at once. No more having to edit individual pages anymore.
×

Success!

Help @mikebapeter spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...