On the main language it works. But on the secondary language it's not loading. It does a request for the fonts but can't find the fonts. I guess it goes wrong because I'm using different domains.
With your config on Polylang - that's correct. Because you're using two domain, of course when you change the domain, the fonts need to load with the corresponding domain. So, I think you need to go to your hosting, create a directory like request URL access and upload your fonts there to make the fonts can load.
Hi,
I have loaded several custom fonts.
On the main language it works. But on the secondary language it's not loading. It does a request for the fonts but can't find the fonts. I guess it goes wrong because I'm using different domains.
en_US = domain: opposuits.com/blog/
nl_NL = domain: opposuits.nl/blog/
But in both cases it requests https://www.opposuits.com/blog/wp-content/uploads/2018/06/Gilroy-ExtraBold.woff
But the nl_NL site is not on the .com site. It should request from the .nl site.
Check attached screenshot for my Polylang domain settings.
Is it a bug, or am I doing something wrong?
Thanks in advanced.
Pierre
Here an additional screenshot from the request.
Hi,
With your config on Polylang - that's correct. Because you're using two domain, of course when you change the domain, the fonts need to load with the corresponding domain. So, I think you need to go to your hosting, create a directory like request URL access and upload your fonts there to make the fonts can load.
Best Regards,
PenciDesign
Hi thanks,
After some thinking I had a very easy solution ;-)
The fonts had a full url with domain name. Like: https://mydomain.com/wp-content/uploads/2018/06/myfont.woff
At the "Custom Font Page" I changed it to: /wp-content/uploads/2018/06/myfont.woff
Problem solved. Thanks for pointing me in the right direction to overthink this.
Cheers,
Pierre
GreatThank you for your sharing.
Best Regards,
PenciDesign