Header Code

With Header Code you can add JS scripts, meta or CSS styles to your website.

Header code will be inserted into the <head>...</head> section of every page on your website. This is useful for analytics and chat integrations. If you want to code your own website content, use the "Custom Code" sections.

Setup

Header Code can be found right under integrations. You can add your code in this input. This can be JS scripts, meta, CSS styles or other general settings for your website.

Example

If you want to hide your header/footer or both you can use the following code:

<script>
document.addEventListener('DOMContentLoaded', function() {
document.getElementById("footer").remove();
document.getElementById("header").remove();
document.getElementById("headerSpacer").remove();
}, false);
</script>

Keep in mind that header code won't be included in the live editor preview. To see it in action, you will need to publish your site.

Was this article helpful?