CMS Development

DOchieng
Participant

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?

0 Upvotes
1 Reply 1
Oezcan
Top Contributor | Diamond Partner
Top Contributor | Diamond Partner

Creating a global partial for the header in the design manager

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.

https://github.com/HubSpot/cms-theme-boilerplate

 

I hope I could help you.

 

Best regards,


Özcan

 

 

Oezcan Eser Signature