After uploading my wordpress website to live server i am getting error in console about my fonts not found. Due to which mobirise icons are not loaded.
Both files are present in that font folder. Please look into the picture.
I am importing these fonts with these css code in style.css
JavaScript
x
11
11
1
@font-face {
2
font-family: 'MobiriseIcons';
3
src: url('../fonts/Mobirise.eot?5dqoim');
4
src: url('../fonts/Mobirise.eot?5dqoim#iefix') format('embedded-opentype'),
5
url('../fonts/Mobirise.ttf?5dqoim') format('truetype'),
6
url('../fonts/Mobirise.woff?5dqoim') format('woff'),
7
url('../fonts/Mobirise.svg?5dqoim#MobiriseIcons') format('svg');
8
font-weight: normal;
9
font-style: normal;
10
}
11
Can anyone tell me why i am getting this error. Is this error related to my hosting?
Advertisement
Answer
I found the answer myself.
JavaScript
1
11
11
1
@font-face {
2
font-family: 'MobiriseIcons';
3
src: url('../fonts/Mobirise.eot?5dqoim');
4
src: url('../fonts/Mobirise.eot?5dqoim#iefix') format('embedded-opentype'),
5
url('../fonts/Mobirise.ttf?5dqoim') format('truetype'),
6
url('../fonts/Mobirise.woff?5dqoim') format('woff'),
7
url('../fonts/Mobirise.svg?5dqoim#MobiriseIcons') format('svg');
8
font-weight: normal;
9
font-style: normal;
10
}
11
In above code i am using Mobirise with capital M whereas the file name is with small m which can be seen in above screenshot.