More

    Avada主题通过自定义CSS全局更换微软雅黑字体

    Avada主题的菜单、正文、标题、面包屑路径等等如果想更换为“微软雅黑”中文字体,只需要进入Avada主题的选项,倒数第二项有个Custom CSS,把下面的代码粘贴进去即可。当然你也可以自行改变字体和字号。

    解决方案来自Avada主题的官方论坛,后来我自己加进去一些。目前2015-6-20为止比较完整

    代码如下:

    body {
    font: 14px/26px ‘Microsoft Yahei’, Arial, Helvetica, sans-serif !important;
    }

    #main h1, #main h2, #main h3, #main h4, #main h5, #sidebar h1, #sidebar h2, #sidebar h3, #sidebar h4, #sidebar h5,.fusion-menu a,.fusion-page-title-captions h1,.fusion-columns h3,.reviews q,.fusion-button-text
    {
    font-family: ‘Microsoft Yahei’ !important;
    }

    #nav ul li.menu-item a {
    font-family: ‘Microsoft Yahei’ !important;
    }

    .page-title h1 {
    font-family: ‘Microsoft Yahei’ !important;
    }

    .heading h2, .heading h3 {
    font-family: ‘Microsoft Yahei’ !important;
    }

    前往《用 WordPress和 Avada做网站》完整版教程

    2 评论

    发表回复

    请填写评论
    请填写您的名字

    最近流行

    小白的课程