J
J
Javier Nazari2015-01-10 17:37:01
CMS
Javier Nazari, 2015-01-10 17:37:01

Doesn't see fonts connected via css, what's the problem?

@font-face {
    font-family: 'Open Sans';
    src: url(../fonts/OpenSans-Regular.ttf);
}

If in html such code works quietly, then in dle such code does not work, and fonts do not work.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
L
lnked, 2015-01-10
@HackerProNoob

Try to convert your script here , you only connect ttf font, it will not work in all browsers; a good example of connecting a font
also check that the paths to the font files are correct

I
IceJOKER, 2015-01-10
@IceJOKER

There are no errors, everything should work.
As they say - what a question - such an answer.
If you want a more effective answer - write a few details, and preferably the address where it doesn’t work, AND IT IS EVEN MORE DESIRABLE DO NOT ASK SUCH QUESTIONS WHERE Psychics are REQUIRED, THEY ARE NOT HERE!

A
Alexander Taratin, 2015-01-10
@Taraflex

Stupid answer
Include google fonts
or
font request parameters see https://www.google.com/fonts

D
Denis Buryi, 2015-01-10
@oso_pardo

Try to specify the full path (from the root folder of the site) to the font.
For example, for CMS Joomla, the path to the font is specified as follows: url (/templates/name of the folder with the template/css/fonts/font.TTF).

I
i386sys, 2016-02-17
@i386sys

I had a similar situation, the problem turned out to be that in linux the case of characters matters, and my folder names were in capital letters.

S
skylinetmk, 2016-10-30
@skylinetmk

In general, after becoming visible, Joomla stopped loading the font in this way
url('/templates/.my template/fonts/cassandra.ttf');
then, having tried to load it along the way, I received a joomla refusal and an error 404. I realized that the redirect.
Opened .htaccess and added to this line ttf
RewriteRule !(js|ico|gif|jpg|png|ttf) index.php [QSA,L] which says to redirect all pages that link to any extensions other than those specified, on index.php
In general, voila, everything works. Visit my website and order sand animation works!)))
Visit my website and order sand animation works...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question