Webfont not working

hi there,

I had post the following code into the style.css of sydney-child,

and all the webfonts files had been uploaded to sydney-child/fonts by FTP,

but it is not working in any broswer,

am I missing anything?

thanks!

*/

body{
font-family: ‘hanwangyenlightregular’,Helvetica,Arial,sans-serif
}

@font-face {
font-family: ‘hanwangyenlightregular’;
src: url(‘http://mobile.newspark.info/wp-content/themes/sydney-child/fonts/wt006-webfont.ttf’);
src: url(‘http://mobile.newspark.info/wp-content/themes/sydney-child/fonts/wt006-webfont.eot’);
src: url(‘http://mobile.newspark.info/wp-content/themes/sydney-child/fonts/wt006-webfont.eot?#iefix’) format(‘embedded-opentype’),
url(‘http://mobile.newspark.info/wp-content/themes/sydney-child/fonts/wt006-webfont.woff2’) format(‘woff2’),
url(‘http://mobile.newspark.info/wp-content/themes/sydney-child/fonts/wt006-webfont.woff’) format(‘woff’),
url(‘http://mobile.newspark.info/wp-content/themes/sydney-child/fonts/wt006-webfont.ttf’) format(‘truetype’),
url(‘http://mobile.newspark.info/wp-content/themes/sydney-child/fonts/wt006-webfont.svg#hanwangyenlightregular’) format(‘svg’);
font-weight: normal;
font-style: normal;

}

h1,
h2,
h3,
h4,
h5,
h6{ font-family: ‘hanwangyenlightregular’; }

Hello there,

Try add the following line into the .htaccess file which resides in your site root folder.


AddDefaultCharset UTF-8

Go here for further reading about .htaccess.

Let me know how it goes. I’ll wait to hear back from you regarding your stats.

Regards,
Kharis

hi there,

it’s strange, the fonts only work in English letters, but not in Chinese characters no matter I added AddDefaultCharset UTF-8 in .htaccess or not,

NOTE : the font added is Chinese,

any clue?

thanks

hi there,

end up using google fonts instead and paste the link into the css and it’s working!

thanks!

Hello there,

I am glad to know that you’ve been able to sort it out by yourself.

I am marking this thread as resolved. Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

Hello there,

Please provide us complete steps to reproduce your custom font, so we can replicate and troubleshot it on my test site.

Regards,
Kharis
aThemes Support