April 28, 201016 yr hi I have a site that is currently using a vertical list of links to allow users to navigate through the site. This is written inside the HTML for each page. The font size, colour of these hyperlinks and other page formatting is controlled by a CSS file. The problem is that the site has around 150 pages and as it develops people are looking for changes in the navigation bar. So i have to go through all 150 pages to make any changes to links etc. I don't want to change the appearnace of the navigation area, but is there an easier way of making these changes? Can i create a CSS file with all the links in it and then make a call for it in HTML code for each page to insert into the page?
April 28, 201016 yr Hi What do you mean exactly by The problem is that the site has around 150 pages and as it develops people are looking for changes in the navigation bar. So i have to go through all 150 pages to make any changes to links etc. If I understand correctly, did you make a navigation menu and have this menu and its code on each and every one of your pages?
April 28, 201016 yr Your best bet would be to look at php includes. this link will give you an idea http://www.stevedawson.com/article0012.php
April 28, 201016 yr Yes, PHP includes are the way to go. If you don't know PHP don't worry its really easy and not scary at all. Do a bit of research on the web and you're good to go! This is also good for footers, headers and any repeated sections on sites. If it requires something specific for the page then I set a variable in the HTML and call it in the PHP code.
April 29, 201016 yr Author Hi What do you mean exactly by If I understand correctly, did you make a navigation menu and have this menu and its code on each and every one of your pages? exactly - maybe not the cleverest way but it was an easy 'copy and paste' job but now it's gone too far.
April 29, 201016 yr Author Yes, PHP includes are the way to go. If you don't know PHP don't worry its really easy and not scary at all. Do a bit of research on the web and you're good to go! This is also good for footers, headers and any repeated sections on sites. If it requires something specific for the page then I set a variable in the HTML and call it in the PHP code. i'll give this a go thanks
April 29, 201016 yr Author Yes, PHP includes are the way to go. If you don't know PHP don't worry its really easy and not scary at all. Do a bit of research on the web and you're good to go! This is also good for footers, headers and any repeated sections on sites. If it requires something specific for the page then I set a variable in the HTML and call it in the PHP code. i'll give this a go thanks
April 30, 201016 yr Ok If you want to do it using PHP maybe this link will help you: http://www.webdesignerforum.co.uk/topic/33594-how-to-add-logo-on-top-of-my-site/page__p__216773entry216773 This was my question when I was trying to add a logo image on all my pages and someone gave me this answer. Most people here know more than me, but I would like to make a suggestion: Why not use frames to do what you want? You can see how to do this simply here: http://www.w3schools.com/html/html_frames.asp and there is an example here: http://www.w3schools.com/html/tryit.asp?filename=tryhtml_frame_cols Someone who knows better than me can jump in and say their opinion. I believe the method with frames is far more simple. [To explain in case you don't know with frames you can keep a part of your site as the menu and everything will open in the rest of the space]
April 30, 201016 yr I just want to add that php includes really are easy. I knew nothing about php and worked it out after reading about it on the stevedawson website
April 30, 201016 yr After making a lot of research, I found out that frames are actually not good to use, for various reasons. I also searched for alternatives to frames for making a navigation menu, and I found that the best alternative is the PHP that the others have suggested. So I guess PHP is the way for us to go.
Create an account or sign in to comment