How to Change Google Fonts in an HTML Newsletter

Published: 22 February 2018
on channel: designmodo
6,254
25

Postcards – Drag and Drop Email Template Builder - https://designmodo.com/postcards/

In this video, I will show you how easily and quickly change Google Fonts in an HTML newsletter created in the Postcards application.

Imagine you have exported an HTML template from Postcards and changed your mind about the fonts you used; now you want to change typefaces quickly without using the Postcards application. To do this, we'll make a few changes directly in the HTML code.

First, open the index.html file and check the font used, it's Open Sans, but I want to change it. I have decided to use Roboto Slab, it's very different from Open Sans because I want to show you the real difference between fonts after the changes.

Now go to the Google Fonts website and choose the Roboto Slab, next, click "Select this font", then click "Family selected fonts", and see the details of Roboto Slab. Let's see what styles we need. Here, in our code, we have 3 font styles: light, regular and bold, so I will use the same for my new font. Click the "Customize" tab and select light, regular and bold. You can select all of them, but we'll use only 3, you will see this in a few seconds. Now go back to the "Embed" tab and copy and paste this URL into the browser and open the link.

Here we have the list of the styles for Roboto Slab. Back to code editor now, I will change this part of the code with the new part of code from Roboto Slab. Start by copying the "Font Face" code and paste to our editor in exchange of Open Sans font, here we have Roboto Slab in a light style. Next, copy the regular style of the font and paste it into the code editor. Then, copy the bold style of Roboto Slab and overwrite the Open Sans code. Done.

We just need to make one more change so that we can see the Roboto Slab font in our newsletter. Change the Open Sans title in the Font Family of the style code directly in HTML, with the name Roboto Slab. Because we have more than 25 Open Sans titles in our HTML file, I will change all of them automatically using the "Replace" feature.

So, in my editor, I will choose the "Find" item in the "Menu" and in the dropdown I will choose "Replace" item. I will type "Open Sans" to find this text in our HTML file and replace it with "Roboto Slab," click the replace button and done, you see we have made 26 changes with one click. Let's check this directly in the code, for example here you can see Roboto Slab, and here also is the new font. Ok, save the HTML file.

Now, open the browser and let's check our changes, refresh the page and, you can see the Roboto Slab font is live. I like how it looks in my newsletter, very strong.

Let's do an experiment now and revert all our changes. Open the code editor and return the Open Sans font to our newsletter. Save the changes and open the browser to check the result. Refresh the page and yes, Open Sans is back, so you can see the changes are live.

I have finished this short tutorial, I hope it was useful, and I'll see you for future tutorials.


Watch video How to Change Google Fonts in an HTML Newsletter online without registration, duration hours minute second in high quality. This video was added by user designmodo 22 February 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 6,254 once and liked it 25 people.