开发者

How to add google webfonts to mediawiki?

google web 开发者_Go百科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".


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜