Anyone know if you can have a separate HTML file for the navbar and link to it
from all the page files? Updating the navbar in each page to ensure consistency
is a pain!
Post is in the link - simplest method possible please: my web dev skills are weak!
You’ll want to either preprocess your website with a templating language (Nunjucks or Handlebars are probably the easiest), or enable server-side technology (PHP includes are probably the simple solution) to build your page navigation on request.
This is not possible* with native HTML.
You’ll want to either preprocess your website with a templating language (Nunjucks or Handlebars are probably the easiest), or enable server-side technology (PHP includes are probably the simple solution) to build your page navigation on request.
*There are some bad hacks on StackOverflow.
You can go old school and use frames! http://www.dansoftaustralia.net/oldest/
Ooh, running to see if I can find it on SO. I love bad hacks.
Edit: I found what I already use :(