Answer the question
In order to leave comments, you need to log in
How to fix 404 error when uploading new WP files?
I upload fonts via ftp, but when I add them to css I get 404.
I go to the full path of the file - also 404 I
changed the access rights to the folder and the font file itself. There is a WP Security plugin and I sin on it. What could be the problem?
Answer the question
In order to leave comments, you need to log in
- If my memory serves me, then you need to "enable support" for this font (otf, ttf, woff, woff2) in the hosting. You should even have a warning about this in the console.
example for IIS https://hotcakescommerce.zendesk.com/hc/en-us/arti...
example for apache https://stackoverflow.com/questions/7415640/correc...
example for nginx https://github .com/fontello/fontello/wiki/How-to-s...
- Also check chmod (755 for directories, 644 for files)
- Also try including font using relative path
https://stackoverflow.com/questions/5314708/ css-fo...
@font-face{ /* for IE */
font-family:FontFamily;
src:url(Font.eot);
}
@font-face { /* for non-IE */
font-family:FontFamily;
src:url(http://) format("No-IE-404"),url(Font.ttf) format("truetype");
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question