How to use customheader.php

After updating the gallery theme, I have to edit the customheader.php to get my site to work since I use this file. How do I use a custom header that can be conserved even if you update the theme. The same is changes in lightroom.css. The same entries do not work by entering them in the style.css.