We use a plugin where we override the entire header template.
Specifically https://github.com/sitepoint/discourse-theme/blob/master/assets/javascripts/discourse/templates/header.hbs