One navigation menu across all pages of website?

Hey everyone!

I am creating my first multipage website and I wasn’t sure what would be the best way to have one navigation menu across all of the pages of my website. When I researched this topic a lot of the results suggested using php to create a header file and reusing that header file across all pages. There were also some suggestions using javascript.

The javascript solutions seemed simple enough to do and if php was the preferred option I wouldn’t mind learning that for this project. Also, were there any other options besides copying and pasting inside each page?

Thanks for your help!

As you said there are multiple choices but it depend on which language you will use. If you use JS and template engine you can write the nav-bar once and import that any where you want to appear in.

1 Like

Thanks @Mohamed-Magdey

You are welcome @jwilkins.oboe