The first thing I can think of is trying to use a wordpress hook, using the function.php of your theme, you can create a child theme if you do not want to mess with the theme. The second would be to modify the header.php of your theme, also here using/creating a child theme is prefered.
Lab.