I'm pretty new to WordPress, so please forgive any ignorances.
I have a child theme which I've implemented, which works okay, but I need to display a banner in the header section, where there is no widget area. The idea is that I use a custom field to identify some aspect of the page, and then display a banner according to that value.
So, I found that I could copy
/my-child-theme/parts/, and add some additional code which identifies the field value and then queries a non-WP database. This works okay too. No problems.
However, I realize that when the main theme gets updated my
header-main.php file (in the child theme) will not get updated, which could later cause issues.
So, I'm wondering if there is a better way or, rather, a correct way of achieving what I'm attempting to do, taking account of the fact that I need the banner to be in a specific place in the header section.
Any suggestions/help appreciated. Thanks!