A
A
Artem Moschennikov2015-03-05 16:13:18
css
Artem Moschennikov, 2015-03-05 16:13:18

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

4 answer(s)
A
Artem Moschennikov, 2015-03-10
@maestro471

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'); 
}

Everything worked

R
Ruslan Abdullaev, 2015-03-07
@rajdee

Have you tried using absolute links to fonts from the main .ru domain?

T
tutuzken, 2015-04-18
@tutuzken

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!

S
Stas Nikulin, 2015-06-11
@tentacleattack

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 question

Ask a Question

731 491 924 answers to any question