Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #1622122
Custom font other language not loading
Closed

Comments

  • Pierre started the conversation

    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

  • Pierre replied

    Here an additional screenshot from the request.

  •  2,700
    PenciDesign replied

    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

  • Pierre replied

    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

  •  2,700
    PenciDesign replied

    GreatThank you for your sharing.


    Best Regards,

    PenciDesign