I have an extensive nav. I considered making a single page that carries the nav and loading all other pages via an iframe. but I am not good with javaScript yet and all my searching has left me with few answers. can anyone help?
@SempervivumJan 11.2022 — #If you consider using javascript there is no need for an iframe: You can load the other pages directly into a container, commonly a `main` element.
However there is a server side alternative: Put your nav into an external file and include it in your pages by PHP include.
@Lenso43authorJan 11.2022 — #@Sempervivum#1641394 This is a very helpful suggestion. I have used the PHP method in the past with the help of a php programmer, but I don't actually know how do do either method, and I can't find my old work to see an example.
do you have any suggestions. I would like to load the page directly into the main element. this is how I have the page set up currently, I just don't know the code to get me there.
@Lenso43authorJan 12.2022 — #Here we go with my lack of experience again. I will have to do this with javaScript because I am not set up to work with a server. If I understand correctly, I need to have a server in order to open PHP files in a web browser. I am working on a javaScript solution, though, I don't know how good it will be. I will post it here when I am done so I can get some schooling.
In the meantime if anyone has some helpful hints, I would love to hear them.
Yeah, that requires PHP running on the server. There are a number of ways to get a web server with PHP running on your personal computer, but may not be worth it to you if you can come up with a decent JavaScript option. (I'm a server-side guy who mostly sucks at JavaScript stuff. ;) )