I have a theme installed and I want to add a header at the top of the existing code. So not to lose it when the theme is updated I'm thinking of creating a child theme and copy the ´header.php` and then edit it in the child theme folder.
So when the theme is updated with changes in the header.php from the main theme developer, will the file that I copied and changed in the child-theme folder have the updates with the code I added? Or it will remain the same whenever the theme is updated?
I mean to have the updates from the developer and my custom header remains there , So for example if he changed the order of the header elements it will be implemented to the child-theme and my custom header will remain?
Is there is a better way for adding that header without creating a child-theme?