How to change a Google web font

This tutorial will show you how to change a Google web font in the Multipurpose Website Templates.
google web font

Sometimes, the font used in an original template does not correspond with your logo design or has no special symbols for your language, so you need to change it on the website. Let us show you how to do it in a few simple steps.

  1. First, open the Google Fonts page at https://fonts.google.com/ and choose the font you like the most. It might be the same font as the one you’re currently using (in case you need its extended version).
  2. Click on the + (select font) icon to the right of the font’s name, e.g., Montserrat.
  3. Below you will see the ‘1 Family Selected’ message. Click on it to expand the pop-up window and go to the Customize tab. You may select here the font parameters, such as font-weight and the character set.
    google web font
  4. Next, see the Embed tab, it allows implementing the font to your website.
    google web font choosing
  5. There are two ways to embed the font to the site (see the ‘Embed Font’ section):
    1. Use the content of a Standard tab and paste it into the <head> of your HTML file for an appropriate page. This way is suitable if you need the font to be used on certain pages only. Example:
    2. Switch to the @import tab and copy the line that starts with @import, e.g.

      Paste it to the top of the style.css file, located in the css folder of your website.

      This will activate the font all over the website and save you lots of time and efforts.
  6. Finally, open the style.css file if you haven’t done that yet and specify a new font-family for your site items. You can copy the appropriate line from the Google Fonts Specify in CSS section, e.g. font-family: 'Montserrat', sans-serif;

That’s all, after completing these steps your new font will appear on the website and make it look spectacular for your site visitors. Wish you good luck!