9

google web fonts requires that an HTML link element should be added to the head of the page:

<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Tangerine">

I cant find the proper php file to modify.

Im using mediawiki 1.17, with the default skin "vector".

Sebastian
  • 91
  • 1
  • 2
  • 8
    solved, I can use @import _url(http://fonts.googleapis.com/css?family=Droid+Serif&v1);_ in a css file, there's no need to modify any php files. – Sebastian Jun 29 '11 at 06:19

2 Answers2

4

You may also try this mediawiki extension: http://www.mediawiki.org/wiki/Extension:WebFonts It does not use google fonts, but you can add custom fonts

Santhosh
  • 51
  • 2
3

You can modify SkinVector::setupSkinUserCss in skins\Vector.php and append $out->addStyle($fonturl, 'screen'); to it.

Tgr
  • 27,442
  • 12
  • 81
  • 118