给WordPress博客网站换个漂亮的字体


Warning: realpath(): open_basedir restriction in effect. File(/www/wwwroot/www.6r9.cn/wp-content/uploads) is not within the allowed path(s): (/www/wwwroot/www.11awz.com/:/tmp/) in /www/wwwroot/www.11awz.com/wp-includes/functions.php on line 2102

Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/www.6r9.cn/wp-content/uploads/2023/06) is not within the allowed path(s): (/www/wwwroot/www.11awz.com/:/tmp/) in /www/wwwroot/www.11awz.com/wp-includes/functions.php on line 2037

Warning: is_dir(): open_basedir restriction in effect. File(/www/wwwroot/www.6r9.cn/wp-content/uploads/2023) is not within the allowed path(s): (/www/wwwroot/www.11awz.com/:/tmp/) in /www/wwwroot/www.11awz.com/wp-includes/functions.php on line 2048

Warning: is_dir(): open_basedir restriction in effect. File(/www/wwwroot/www.6r9.cn/wp-content/uploads) is not within the allowed path(s): (/www/wwwroot/www.11awz.com/:/tmp/) in /www/wwwroot/www.11awz.com/wp-includes/functions.php on line 2048

Warning: is_dir(): open_basedir restriction in effect. File(/www/wwwroot/www.6r9.cn/wp-content) is not within the allowed path(s): (/www/wwwroot/www.11awz.com/:/tmp/) in /www/wwwroot/www.11awz.com/wp-includes/functions.php on line 2048

Warning: is_dir(): open_basedir restriction in effect. File(/www/wwwroot/www.6r9.cn) is not within the allowed path(s): (/www/wwwroot/www.11awz.com/:/tmp/) in /www/wwwroot/www.11awz.com/wp-includes/functions.php on line 2048

Warning: is_dir(): open_basedir restriction in effect. File(/www/wwwroot) is not within the allowed path(s): (/www/wwwroot/www.11awz.com/:/tmp/) in /www/wwwroot/www.11awz.com/wp-includes/functions.php on line 2048

Warning: is_dir(): open_basedir restriction in effect. File(/www) is not within the allowed path(s): (/www/wwwroot/www.11awz.com/:/tmp/) in /www/wwwroot/www.11awz.com/wp-includes/functions.php on line 2048

Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/www/wwwroot/www.11awz.com/:/tmp/) in /www/wwwroot/www.11awz.com/wp-includes/functions.php on line 2048
给WordPress博客网站换个漂亮的字体-安笙博客
给WordPress博客网站换个漂亮的字体
此内容为免费阅读,请登录后查看
0
免费阅读

前言

大多数站长在使用博客初期,喜欢魔改美化自己的网站,博客的建设主要方便访客高质量的阅读 所以对字体的选择非常重要,本期博主给大家出一期如何给自己的博客资源网自定义自己喜欢的字体。

教程

1.首先去下载自己喜欢的字体包 我给大家在这里推荐一款免费的字体下载站可商用

开源字体下载站

2.当我们下载字体之后会有一个压缩包 里面会有一个.ttf 的字体文件包,因为有些浏览器不支持这种字体的格式显示 所以我们需要对字体格式转换,如果不进行转换字体格式,有些浏览器会无法显示自己设置的喜欢的字体 如果你毫无技术不会转换字体格式不要怕,博主提供俩个免费快捷的字体转换网站,需要转换为7种字体格式。分别是:ttf,woff,woff2,svg,otf,eot,dfont

3.把转换好的字体文件放在自己网站随便那个文件夹内,只需要记住地址就行我放在自己的根目录下的-案例:https://www.ansnet.cc/ziti/fzlty.ttf【推荐放在云储存里】或者把字体文件上传到腾讯云或者阿里云的云储存中,这样可以加快字体加载,如果是 WordPress 子比主题的话把下面的 css 代码放在自定义 css 样式中(下方代码是本站现在用的字体)

演示图

2c134-18a07b83ccf8d

将以上代码添加你的主题文件 css 样式即可。

子比主题路径:后台主题设置—>自定义代码—>自定义 CSS 样式代码把下面的代码添加到里面 然后刷新页面即可

© 版权声明
THE END
喜欢就支持一下吧
点赞51 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情图片

    暂无评论内容