{"id":8016,"date":"2015-11-21T13:37:51","date_gmt":"2015-11-21T13:37:51","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/11\/21\/font-awesome-not-working-bundleconfig-in-mvc5-open-source-projects-fortawesome-font-awesome\/"},"modified":"2022-08-30T15:03:04","modified_gmt":"2022-08-30T15:03:04","slug":"font-awesome-not-working-bundleconfig-in-mvc5-open-source-projects-fortawesome-font-awesome","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/11\/21\/font-awesome-not-working-bundleconfig-in-mvc5-open-source-projects-fortawesome-font-awesome\/","title":{"rendered":"font-awesome not working bundleconfig in MVC5-open source projects FortAwesome\/Font-Awesome"},"content":{"rendered":"<p>If I direct refer to <code>font-awesome.css<\/code> in _layouts page. it will work<\/p>\n<pre><code>\n<\/code><\/pre>\n<p>But I used in <code>BundleConfig.cs<\/code>. Icon is not showing.<\/p>\n<pre><code> bundles.Add(new StyleBundle(\"~\/Content\/css\").Include(\n                        \"~\/Content\/font-awesome-4.0.3\/css\/font-awesome.css\",\n                        \"~\/Content\/bootstrap.css\",                        \n                         \"~\/Content\/body.css\",\n                        \"~\/Content\/site.css\",\n                        \"~\/Content\/form.css\"\n                     ));\n<\/code><\/pre>\n<p>and also I observed browser console have error to font directory. <code>Failed to load resource: the server responded with a status of 404 (Not Found) http:\/\/localhost:51130\/fonts\/fontawesome-webfont.woff?v=4.0.3<\/code><\/p>\n<p>what could be the problem?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If I direct refer to font-awesome.css in _layouts page. it will work But I used in BundleConfig.cs. Icon is not showing. bundles.Add(new StyleBundle(&#8220;~\/Content\/css&#8221;).Include( &#8220;~\/Content\/font-awesome-4.0.3\/css\/font-awesome.css&#8221;, &#8220;~\/Content\/bootstrap.css&#8221;, &#8220;~\/Content\/body.css&#8221;, &#8220;~\/Content\/site.css&#8221;, &#8220;~\/Content\/form.css&#8221; )); and also I observed browser console have error to font directory. Failed to load resource: the server responded with a status of 404 (Not Found) http:\/\/localhost:51130\/fonts\/fontawesome-webfont.woff?v=4.0.3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8016","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8016","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=8016"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8016\/revisions"}],"predecessor-version":[{"id":8694,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8016\/revisions\/8694"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=8016"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=8016"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=8016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}