I’d like to input some code, for example a menu in HTML from another file so that I can edit that menu and then all the menus for all the sites would change as they’d be linked to that page. Is there a way to do so without making all the pages .php?
Share
You may use server-side includes (SSI):
or
or
iframes:
or javascript (AJAX):
STEP 1: add code to html file
STEP 2: configure [apache] server by adding to .htaccess file. Add this line: