Regardless of whether you have a blog or an eCommerce store, having a beautiful website will lead to an increase in conversions, because people trust professional looking sites more.
Even though there are a few examples where unattractive site design has not prevented a business from becoming popular, good Web design makes better financial sense.
So why not make the effort?
And, now that Google provides an intuitive online fonts service that is freely available to the public, looking professional is easier than ever.
This article will talk about what Google Fonts is, and how to use it to improve the look and feel of your website.
About Google Fonts
Google Fonts is an online resource that contains a categorized database of fonts that can be integrated into any website.
The font files themselves are unfortunately pretty large and cumbersome, so this limits the amount of fonts you can import into a site - otherwise, you risk slowing down page load times.
But, as Google points out, once someone has browsed a site that uses the same font(s) included in your site, their browser can use the cached version and it is not necessary to download the font files again.
Over time, hopefully, using Google fonts will not impact on the speed of your site in any significant way.
For now, it is probably best to pick one Google font that will be used over the majority of your website, and use standard Web safe fonts (like Arial, Verdana, Helvetica, etc) if you need variety.
How to add Google fonts to your website
To add a Google font to your site, follow these steps:
- Go to Google Fonts
- Find a font that you would like to use on your site and click the blue "Add to collection" button, like this:
- Next, you can choose the styles to include with the font download. Be careful to keep the size down:
- Scrolling down the page, you'll be able to choose a method of importing the font CSS. Often, the easiest way is to simply copy and paste the link declaration into the <HEAD> section of your site:
- Once you have copied and pasted the link code, your header section (in the HTML code of your website) should look something like this:
With the font CSS included in the site, it is available to use in your CSS code.
Don't panic if you don't know anything about CSS. All you need to do in order to see the new font in action is:
- Find your site's CSS file(s)
- Open it for editing and search for the phrase font-family. You should see something like:
- Change the font-family CSS declaration to include your new Google font. In the case of SME Pals, we made the following change to the font family:
Remember to swop the new font name (shown in bold above) with the name of the one you are using.
- Save the changes and refresh your browser. If there is no change visible, you may need to clear out any caches your site has first.
The above instructions use the body declaration as an example. This will change the font across your whole site - unless a particular piece of content has its own font-family styling.
However, you can apply a font style anywhere you like - it doesn't have to be site wide in the body declaration.
Pretty easy, huh?
It's a good idea to play around with different fonts to get a feel for what's on offer, and whether or not the style fits your site.
Drop a comment to let me know what you think of Google Fonts, and share your tips and experiences (hopefully positive ones) around how beautiful fonts can contribute to your site design and ultimately help market and grow your business.