External CSS Menu file

Post your questions and problem reports here.
Post Reply
JohnR132
Posts: 1
Joined: Tue Sep 29, 2015 3:00 am

External CSS Menu file

Post by JohnR132 »

Is there a way to use an external CSS menu file for all web pages on site? Just edit CSS menu, then upload it and will apply for all pages. Not have to copy and paste on very site page which is some 50+ pages. Need example on how to do this.
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: External CSS Menu file

Post by Aivars »

You can't do it with simple HTML but you can do it with server scripting language such as PHP. Put the menu code in another file (e.g. menu.php) and just include this file in all your pages in the right place.
Alternatively Apache web server offers something called server side includes: http://httpd.apache.org/docs/2.4/howto/ssi.html
Blumentals Software Programmer
earthcomedy
Posts: 25
Joined: Sun Dec 28, 2014 7:11 am

Re: External CSS Menu file

Post by earthcomedy »

I use an external PHP file that has all the EasyCSS menu code in there. Works like a charm... all the pages on the site in question are PHP.
Post Reply