开发者

How to add google webfonts to mediawiki?

开发者 https://www.devze.com 2023-03-15 22:26 出处:网络
google web 开发者_Go百科fonts requires that an HTML link element should be added to the head of the page:

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

精彩评论

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