sophshep
02-16-2011, 04:06 PM
This might be a php question, I'm not really sure because I am somewhat new to development.
I am building a site that has a large and detailed navigation, with lots of subpages. I imagine that over time, I will be adding and deleting some pages, and will also need to make the corresponding change in my <ul> nav.
As it is set up now, I'll need to open 20 different pages and edit each of their code. I can see this getting very tedious, confusing, and having a large likelihood that I'll mess something up accidentally.
My question is: Is there a way of having my Header (and nav) as one single html or php file? So that I can only edit that one file, and it will change on all pages of my site (similar to editing a CSS style sheet). I am almost certain I have seen this done on Wordpress themes.
Sorry if this is a stupid question! If someone could just point me in the direction of a tutorial or tell me what this is called, that would be great.
Thank you!!
Sophie
I am building a site that has a large and detailed navigation, with lots of subpages. I imagine that over time, I will be adding and deleting some pages, and will also need to make the corresponding change in my <ul> nav.
As it is set up now, I'll need to open 20 different pages and edit each of their code. I can see this getting very tedious, confusing, and having a large likelihood that I'll mess something up accidentally.
My question is: Is there a way of having my Header (and nav) as one single html or php file? So that I can only edit that one file, and it will change on all pages of my site (similar to editing a CSS style sheet). I am almost certain I have seen this done on Wordpress themes.
Sorry if this is a stupid question! If someone could just point me in the direction of a tutorial or tell me what this is called, that would be great.
Thank you!!
Sophie