Single header footer file

currently when i create different pages inside a project its creates separate header and footer file for each, is there a way to have it to use a single file that’s the main header and footer file as it usually is in the wordpress themes.

The answer you are looking for has something to do with master pages.