Techniques to have fancy fonts in WordPress?

google fontsThis article tries to help one understand the various ways of applying fonts into your WordPress.

We are also going to discuss the various easily available plugins one could use if they are not comfortable using the codes.

Here are a few methods and tricks of using fancy fonts and typography in WordPress:

1. SIFR: Scalable Inman Flash Replacement also know as sIFR uses a combination of javascript and Flash to show custom fonts in your website. This technique was widely used until browser and smartphones and tablets started using javacript and jquery instead of Flash and has been since then discontinued by its developer.

sIFR can also be easily generated using the sIFR generator website where it generates .swf for any font.

Here is one plugin:

This technique we would suggest have been redundant of lately and hence one should avoid using it unless they want to use flash on their website.

2.       Cufon

Cufon uses cufon generator: i.e SVG and VML technique to render and produce a javascript for any font. Using the cufon generator tool one can have bold, light, italic and all other font types of a font into one javascript. Then they have to use the javascript either in header or footer of the WordPress theme to use cufon fonts.

If this sounds a bit tedious the following plugins might come handy for using cufon fonts:


All in one Cufon

Pros: Pros of cufon is that since it renders a font as image it appears all the same in all browsers including mobile phones.

Cons: It requires javascript. So if someone disables scripts on their browsers cufon fonts won’t appear.

Another biggest con is license use issue. Some people tend to use some fonts on their website and then later on are contacted by font creators to either remove their fonts from the website or pay for it.

3.       CSS Techniques

CSS Techniques are probably the best one but the only problem with css techniques is that they need to include the font file i.e. ttf or otf font file into header or footer. So when the font is not in use then also they are being loaded up in header. Some fonts have all styles like bold, italic, lighter, bolder and other styles. So this makes the font bulky. Hence including them into your website also means making your site heavier.

The following shows how to include fonts from font face or font squirrel or dafont or any other font website into your css:


font-family: ‘MyWebFont’;

src: url(‘WebFont.eot’);

src: url(‘WebFont.eot?iefix’) format(‘eot’),

url(‘WebFont.woff’) format(‘woff’),

url(‘WebFont.ttf’) format(‘truetype’),

url(‘WebFont.svg#webfont’) format(‘svg’);


The above technique shows inclusion of fonts into css. You need to write this on top of your style.css

However this method is still largely in use especially for language fonts where one can’t use English fonts and have to have language fonts. There CSS techniques or font face technique of including fonts in css is still in use.

4.       Google Fonts

Probably the best method by which one can use fancier fonts into their website. This is a library of 632 fonts and still growing. Inclusion of google fonts is real easy and can be done using either import method or link method or javascript method. So whichever suits you the most and your style one can use those fonts.

Pros: It is real easy and simple and is light weight as the fonts are loaded from google servers.

Cons: Font needs to be loaded and heavier fonts with more styles can reduce page speed. Also for websites using other languages google fonts can’t be used as only Cyrillic, Greek, Khmer, Vietnamese and Latin languages/script are available. Hence other languages might have to still use CSS Techniques to include and import a font for their website.

Want to use google fonts using plugins here are some:

WP Google Fonts

Google Typography

Thank you for visiting SKT Themes a place for selecting top WordPress Themes from a list of several hundred templates. Happy Reading and Shopping.