0
I’m using Font face in WORDPRESS, and in local hosting (WAMP) he picks up the font, but when publish online he does not take the font I want.
the font folder is in: ONLINE: public_html/wp-content themes eddiemachado-Bones-cfbfb62 library fonts LOCAL: localhost/ecg/wp-content themes eddiemachado-Bones-cfbfb62 library fonts
@font-face {
font-family: 'Aileron-SemiBoldItalic';
src: url('../fonts/Aileron-SemiBoldItalic.eot');
src: url('../fonts/Aileron-SemiBoldItalic.eot?#iefix') format('embedded-opentype'),
url('../fonts/Aileron-SemiBoldItalic.woff') format('woff'),
url('../fonts/Aileron-SemiBoldItalic.ttf') format('truetype'),
url('../fonts/Aileron-SemiBoldItalic.svg#Aileron-SemiBoldItalic') format('svg');
font-weight: normal;
font-style: normal;
}
probably the problem is with the relative path, and not with the source.
('../fon
. Try to put the path from the root:/recursos/fontes/nomedafonte.ttf
(adapt the path to your specific case)– Bacco
A basic problem is setting up local hosting at a different level than the remote one, and the "ecg" folder indicates that you did just that. It would be better to host at the root of the localhost (and if testing different websites, create entries for each of them on the pc hosts).
– Bacco
If the problem isn’t on the way, make sure you have two things: an obvious one is to see if the sources are published. Another not so much, is to check if the web server is with the mime-types of each of the extensions configured correctly. On my server I had to manually register most of the formats.
– Bacco
friends, it was a problem in hosting already solved by calling there :D
– kaiquemix