Change the font path when using Font Awesome

tarzanbappa

It works when I have my CSS file and the font files in the same folder.

But when I put my font files in side a folder, I can't get my icons.

Here is my CSS code..

 @font-face {
        font-family: FontAwesome;
        src: url(fontfile-webfont.eot?v=4.0.3);
        src: url(fontfile-webfont.eot?#iefix&v=4.0.3) format('embedded-opentype')
        ,url(fontfile-webfont.woff?v=4.0.3) format('woff')
        ,url(fontfile-webfont.ttf?v=4.0.3) format('truetype')
        ,url(fontfile-webfont.svg?v=4.0.3#fontawesomeregular) format('svg');
        font-weight: 400;
        font-style: normal;
    }

    .att {
        display: inline-block;
        font-family: FontAwesome;
        font-style: normal;
        font-weight: 400;
        line-height: 1;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
        .att-renren:before {
            content: "\f18b";
        }

And my folder structure...

CSS file

Content/themes/common.css

Font files

Content/themes/fonts/

Can I change the path of the font files in CSS??

VK321

Yes you can change,

  1. Open your fontawasome css file.
  2. Find fontface path and edit for all fonts types.

    @font-face{font-family:FontAwesome;src:url(../fonts/fontawesome-webfont.eot?v=4.0.3)
    

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Change the font path when using Font Awesome

From Dev

Change color when hover a font awesome icon?

From Dev

change font-awesome icon when toggled

From Dev

Change color of Font Awesome icons when they selected

From Dev

change font-awesome icon when toggled

From Dev

Rails - Using Font Awesome

From Dev

Rails - Using Font Awesome

From Dev

webpack using font awesome

From Dev

Changing Font Icon in WPF using Font Awesome

From Dev

Changing Font Icon in WPF using Font Awesome

From Dev

How to change font-awesome icon color when it is active

From Dev

How to change font-awesome icon color when it is active

From Dev

Using font-awesome and css, is it possible for a css change to alter the icon?

From Dev

How to change button text to font awesome icon using jquery

From Dev

Using font-awesome and css, is it possible for a css change to alter the icon?

From Dev

How to change button text to font awesome icon using jquery

From Dev

Using Font Awesome as Select Icon

From Dev

Using Font Awesome dynamically in Swift

From Dev

Using font-awesome in a code

From Dev

Using Font Awesome with jQuery SVG

From Dev

Using Font Awesome dynamically in Swift

From Dev

Using Font Awesome as Select Icon

From Dev

Using Font Awesome with Webpack and ExtractTextPlugin

From Dev

Change button's content font when it contains font-awesome icon

From Dev

Links not rendering when using font awesome in D3

From Dev

Font awesome not loading when using Python simple http server

From Dev

Links not rendering when using font awesome in D3

From Dev

No Images when using font-awesome with MVC 5 website

From Dev

Why Font Awesome icons have weird "margin" on top when using small font-sizes?

Related Related

HotTag

Archive