Font Awesome icons disappeared. Strange characters (Big Commerce)

我只是一个虾纸丫 提交于 2019-12-12 05:38:08

问题


After doing a few and simple css edits on a Big Commerce site, the search and cart icons suddenly disappeared. They are now displayed as strange characters. I went into the Big Commerce design backend and did not find anything strange into the code. When inspect the html and css code in the browser the icons are called properly:

<i class="fa fa-search"></i>

What could be wrong? Url to the site is Url template demo url is enter link description here

Any help is much appreciated, new to Big Commerce.


回答1:


This can happen when you edit CSS files for the first time. If you download all the theme files and reupload the font-awesome or font folder to WebDAV, that should resolve.




回答2:


This is what I got from console.

Font from origin 'http://cdn4.bigcommerce.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://hearneseed.com' is therefore not allowed access. The response had HTTP status code 404.

You're linking to a file that does not exist on the server. Also you may want to read up on the Same-Origin Policy!

Here's the official link to the Font-Awesome library. (Don't hyperlink! Download it, host it on your server and link to it that way!)

http://fontawesome.io/
http://fontawesome.io/assets/font-awesome/css/font-awesome.css



来源:https://stackoverflow.com/questions/37420929/font-awesome-icons-disappeared-strange-characters-big-commerce

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!