答案 0 :(得分:0)
检查您的浏览器控制台是否存在字体错误意味着找不到字体
GET http://www.stitchstudio.co/about/fonts/DINNextLTProBold.woff2
GET http://www.stitchstudio.co/about/fonts/DINNextLTProRegular.woff
GET http://www.stitchstudio.co/about/fonts/DINNextLTProBold.woff
GET http://www.stitchstudio.co/about/fonts/DINNextLTProRegular.ttf
GET http://www.stitchstudio.co/about/fonts/DINNextLTProBold.ttf
GET http://www.stitchstudio.co/wp-content/themes/lens/theme-content/css/fonts/DINNextLTProRegular.woff2
GET http://www.stitchstudio.co/wp-content/themes/lens/theme-content/css/fonts/DINNextLTProRegular.woff
GET http://www.stitchstudio.co/wp-content/themes/lens/theme-content/css/fonts/DINNextLTProRegular.ttf 404 (Not Found)
检查路径并修复它然后它完美运行
答案 1 :(得分:0)
我猜你没有以正确的方式指向主题目录,你应该使用get_stylesheet_directory_uri()或类似的。
<?php echo get_stylesheet_directory_uri(); ?>/font-folder/font.extension
现在,它没有使用它,所以从主页开始,字体会被加载,因为它指向: http://www.stitchstudio.co/fonts/DINNextLTProRegular.woff2
对于其他页面不是,它将使用页面网址,而不是网站网址,就像: http://www.stitchstudio.co/about/fonts/DINNextLTProRegular.woff2
导致错误。