Change the heading font โ
Add a second font โ
First, you need to add a link to a font to your website that you want to use as a secondary font.
๐ Add a Google font
๐ Add an Adobe font
Once you've added a reference to a new font, you can decide whether to apply the different font to all headings on your website or just specific sections.
Apply to all titles โ
- Go to the web projects homepage and click Settings then Code Injection,
- Copy and paste this code into the "` tag code" box:html
<style> .OverrideDefaultBlockItem--title, .OverrideMainBlockItem--title, .OverrideMainItem--title, .OverrideGridBlockItem--title, .OverrideColumnBlockItem--title, .OverrideLinearBlockItem--title, .OverrideFeedPageHeader--title, .OverrideContentPageHeader--title, .OverrideFeedBlockItem--title { font-family: "Inter", serif; } </style>
- Change the value of
"Inter", serif
to the name of the font family you installed, - Click the check mark to confirm that the code is safe and then click "Save".
Apply to specific sections โ
- Create a section on a page,
- Enter the title text and save,
- Click the button with the table icon next to the section,
- Click "Add" and enter the word
class
in the "Key" field and then the wordCustomHeading
in the "Value" field and click "Save", - Go back to the web projects homepage and click Settings then Code injectione,
- Copy and paste this code into the "" tag code box:html
<style> .CustomHeading .OverrideDefaultBlockItem--title, .CustomHeading .OverrideMainBlockItem--title, .CustomHeading .OverrideMainItem--title, .CustomHeading .OverrideGridBlockItem--title, .CustomHeading .OverrideColumnBlockItem--title, .CustomHeading .OverrideLinearBlockItem--title, .CustomHeading .OverrideFeedPageHeader--title, .CustomHeading .OverrideContentPageHeader--title, .CustomHeading .OverrideFeedBlockItem--title { font-family: "Inter", serif; } </style>
7. Change the value of `"Inter", serif` to the name of the font family you installed,
8. Click the checkbox to confirm that the code is safe and then click "Save".