wordpress cufon不工作

时间:2013-02-11 10:45:55

标签: wordpress plugins cufon

我刚安装了wordpress的cufon插件,并试图让它进行字体替换。

我有以下html:

<h2 class="gentium twelve columns"><?php echo get_bloginfo('description'); ?></h2>

以下cufon css致电:

Cufon.set('fontFamily', 'gentium-italic').replace('h2');

在管理面板中,cufon插件识别出&#34; gentium-italic.js&#34;我没有得到任何javascript错误,但字体在前端没有被替换。

1 个答案:

答案 0 :(得分:0)

打开您的Cufon生成的字体文件,并检查其中指定的font-family名称是否与您在Cufon.set()函数中使用的名称相匹配。您要查找的代码应类似于:

Cufon.registerFont({"w":199,"face":{"font-family":"gentium-italic"...