Custom Font - Footer heading - Impulse Theme

Hello

I have uploaded a custom font to my asset folder.

I would like my Footer headings to use that font.

Please can you advise how to do this?

I am using the Impulse Theme.

www.thebodyshop.mu

cleeth

Thanks

@TBS2022 Pleae write below css in styles.scss.liquid

font-face

{ font-family: “Font name”;

src: url({{ “Filename” | asset_url }}) format(“Format”);

}

I do not have the styles.scss.liquid ???

@TBS2022 - you have theme.css file

yes.

i did copy it there- but nothing happened

@TBS2022 - which details did you use?

font name - ?

what filename and format do you have? did you replace the names in the code?

after you do that you will need to set css for required header using

font-family:font-name

the very same font-name you used in above code

i did this

font-face

{ font-family: “Druk Bold Web”;

src: url({{ “Druk-Bold-Web.woff” | asset_url }}) format(“woff”);

}

then

.footer__title {
font-family: “Druk Bold Web”;
text-transform: uppercase;
font-size: 1rem;
letter-spacing: 0;

}

@TBS2022 - please add [email removed] before font-face so it becomes

@font-face

amazing - thank you so much

1 Like