Adding a Google Font

Problem

You want to insert a Google Font into your website without uploading the font files

Solution #1

Add to your page template:

@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

(replace “Montserrat” with font name)

 

Solution #2

Add to your stylesheet:

@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

(replace “Montserrat” with font name)

Leave a Reply

Your email address will not be published. Required fields are marked *