Creating a global partial for the header in the design manager

Hi everyone,

I’m new to hub spot…I was wondering how one can create a global partial for the header using the design tools…any help?

Hi @DOchieng,

Hello @DOchieng,

Welcome to HubSpot.

You will need two things. And once in your HTML, In the first lines:

<!--
templateType: global_partial
label: Website header
-->

And:

{%block header%}
{% global_partial path="../partials/header.html" %}
{% endblock header %}

in the HTML file where you want to paste it.

If you are unsure, you can also check the boilerplate.

I hope I could help you.

Best regards,

Özcan