Answer the question
In order to leave comments, you need to log in
Why are icon fonts not showing up on the secondary domain?
Good afternoon!
Connected main domain .ru and additional .rf
WordPress site with Elusive font. Icons are called through <i class=>
, the path to the font is relative
On the .rf domain instead of icons, white squares in Google Chrome
On the iPad, everything is displayed normally on the .rf domain (Google Chrome, Safari, iCab)
Why does this problem only occur on the desktop?
PS: I don’t know if it’s customary to give links to sites, if necessary, I’ll throw it off without any problems
Answer the question
In order to leave comments, you need to log in
I tried it, the result is the same
Added instructions to wp-config.php for working with the .rf domain:
if ($_SERVER['HTTP_HOST'] == 'PUNYCODE') {
define('WP_HOME','http://PUNYCODE');
define('WP_SITEURL', 'PUNYCODE');
}
Have you tried using absolute links to fonts from the main .ru domain?
Greetings Artem, I ran into the same problem, but I have an alias in Latin and not in .rf,
tell me what to write in the config?
the main domain for example is aaa.ru and the alias is aa-a.ru
I will be very grateful to you!
tutuzken For your case, it will help to connect the font library manually to the header.php file of your theme, you need to insert the code of the imported font into the head tag, in my case it was FontAwesome, here is a piece of the necessary code fontawesome.io/get-started
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question