Hey Kriesi Team
> Our website is using WPML plugin
> I want to load custom font whenever a user click on our language from WPML tab and the website is translated to that language (Farsi).
I put this code for it, but it doesn’t seems to work:
@font-face {
font-family: 'IRANSans';
src: url('fonts/IRANSansweb.eot');
src: url('fonts/IRANSansweb.eot?#iefix') format('embedded-opentype'),
url('fonts/IRANSansweb.woff2') format('woff2'),
url('fonts/IRANSansweb.woff') format('woff'),
url('fonts/IRANSansweb.ttf') format('truetype'),
url('fonts/IRANSansweb.svg#IRANSans') format('svg');
}
body {
font-family: "IRANSans" !important;
}
fieldset label {
font-family: "IRANSans" !important;
}
input[type="submit"], h1, h4, h5, h3, h2 {
font-family: "IRANSans" !important;
}
input[type='text'],
input[type='email'],
textarea{
font-family: 'IRANSans' !important;
}
Let me know please
Regards,
Sadegh
Hi Sadegh!
Could you please post FTP logins here privately as well? Fonts cannot be found at the moment.
Regards,
Yigit
Hey dear Yigit,
Please find the login credentials in private area.
Regards,
Sadegh
Hey!
Filenames were causing the issue. I have updated them and moved your custom CSS code into style.css file. Please review your website now.
Cheers!
Yigit
Hey,
Thank you very much Yigit for the correction and updated me about the issue.
(you may now close the thread please)
Regards,
Sadegh