Does @import not work?
-
I was try to import the earlyaccess google web font in CSS editor.
I put the following code in:
@import url(//fonts.googleapis.com/earlyaccess/notosanssc.css);
p {
font-family: “Noto Sans SC”, Times, serif;
}As soon as I put the code in, the preview of site shows perfectly fine. When I save and go back the site did not change the font and when go back in the css editor once again, the @import line was gone.
I am wondering if I can not use @import in wordpress css editor
Thanks!
-
Hi @iknowchina,
WordPress.com strips out @import from the CSS editor for security reasons.
You might be able to change fonts to Noto Sans by using the fonts panel in the customizer:
-
Hello, thanks for you reply. In my fonts panel, there are only ‘heading’ and base font’, both of which do not change the paragraph font (article body).
Do you know other ways to solve this?
Thanks,
-
Is https://iknowchina.blog/ the site you need help with?
Elemin is a premium theme I don’t have access to, so I can’t troubleshoot it.
I’ve tagged this thread with modlook to bring it to the attention of staff.
-
-
Hi @iknowchina, unfortunately, support for languages other than latin-based on web fonts is still pretty poor, and that may be the reason that the font is not being applied to the body text, and this will be the same with all themes as it is a font issue. The font software looks at the language being used, and if the characters are not supported, it will keep the default font.
- The topic ‘Does @import not work?’ is closed to new replies.