Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add google webfonts to mediawiki?

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".

like image 780
Sebastian Avatar asked Jun 29 '11 05:06

Sebastian


2 Answers

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

like image 181
Santhosh Avatar answered Nov 16 '22 04:11

Santhosh


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

like image 40
Tgr Avatar answered Nov 16 '22 03:11

Tgr