Let’s say I make a new nav menu. Now that would have to be in every single page on the site… for my site i have around 20 pages (and growing) and going to each of them to replace the code with the new one is tiresome. I was wondering If there was somehow a quicker, faster way.
You can put the header code in a separate PHP file and include that file on every single page of your website, but that will require you to have PHP files for every page of your website (if they were HTML files, you can rename them to have a .php
extension through either the File Manager or an FTP client). Like so you can change the header file only once to have it updated in every single other page that has that file included.
10 Likes
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.