Using Font Awesome library in a Shopify store

蓝咒 提交于 2019-12-05 10:56:06

You will want to use the liquid asset URL helper in your CSS. More docs on the asset URL helper can be found here http://wiki.shopify.com/Asset_url

The simplest solution is to attach this to header of theme.liquid

<!-- Font-Awesome ================================================== -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">

No extra uploading. No installation. No hassle. Done.

Thank you MaxCDN :)

Michel

You must remove #iefix and #FontAwesome in the @font-face code. Here's the correct code:

@font-face {
font-family: "FontAwesome";
src: url('fontawesome-webfont.eot');
src: url('fontawesome-webfont.eot?') format('eot'), url('fontawesome-webfont.woff') format('woff'), url('fontawesome-webfont.ttf') format('truetype'), url('fontawesome-webfont.svg') format('svg');
font-weight: normal;
font-style: normal;
}  
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!