bootstrap字形在WordPress主题中不起作用

我使用yeoman生成器webapp, bootstrap和sass创建了一个网站。该网站已建成, 并且一切工作正常, 但是当我尝试将其变成WordPress主题时, 字形图标停止显示。所以我检查了字形图标的src路径是否错误。路径中的所有内容都正确, 但省略了主题名称(苹果)。

例如:-

正确= C:\ xampp \ htdocs \ wordpress \ wp-content \ themes \ apple \ fonts \ glyphicons-halflings-regular.ttf

错误的= C:\ xampp \ htdocs \ wordpress \ wp-content \ themes \ fonts \ glyphicons-halflings-regular.ttf


#1


不要更改Bootstrap文件的位置, 这不是一个好习惯。将所有Bootstrap的文件保留在bootstrap文件夹中, 然后仅在页面中包含CSS和JS文件。

你可以查看此页面以获取更多信息-http://www.tutorialrepublic.com/twitter-bootstrap-tutorial/bootstrap-get-started.php


#2


Glyphicons不再是Bootstrap 4的一部分。因为UnderStrap基于Bootstrap 4, 所以它们也被删除。

use this cdn :
<link rel="stylesheet prefetch" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">

来源:

https://www.srcmini02.com/64789.html

微信公众号
手机浏览(小程序)
0
分享到:
没有账号? 忘记密码?