Home>Support>Polylang Url modifications

Polylang Url modifications

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

I use Polylang for my website in both English and French. My homepage uses the Siteorigin Features widget. When “The language is set from the content” feature icons display properly for both languages. When “The language is set for different domains” feature icons display properly for default language on .com domain but do not display for the secondary language on the .fr domain.
http://thollonlesmemisesapartment.com
http://thollonlesmemisesapartment.fr

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 2 months ago Alex S
    Hi, I Work Here

    Hi Lhommedelecosse,

    This sounds like a Cross-Origin Resource sharing policy (CORS) issue. Basically, browsers will block fonts being inserted from other pages unless they’re allowed. I cannot provide further instructions on how to resolve this issue outside of recommending that you contact your hosting provider for advice. State that you would like to enable CORS.

  2. 9 years, 2 months ago lhommedelecosse

    Alex,
    You are correct. I solved the problem by adding the following code to my .htaccess file.

    # ----------------------------------------------------------------------
    # CORS-enabled images (@crossorigin)
    # ----------------------------------------------------------------------
    # Send CORS headers if browsers request them; enabled by default for images.
    # developer.mozilla.org/en/CORS_Enabled_Image
    # blog.chromium.org/2011/07/using-cross-domain-images-in-webgl-and.html
    # hacks.mozilla.org/2011/11/using-cors-to-load-webgl-textures-from-cross-domain-images/
    # wiki.mozilla.org/Security/Reviews/crossoriginAttribute
    <IfModule mod_setenvif.c>
      <IfModule mod_headers.c>
        # mod_headers, y u no match by Content-Type?!
        <FilesMatch "\.(gif|png|jpe?g|svg|svgz|ico|webp)$">
          SetEnvIf Origin ":" IS_CORS
          Header set Access-Control-Allow-Origin "*" env=IS_CORS
        </FilesMatch>
      </IfModule>
    </IfModule>
    # ----------------------------------------------------------------------
    # Webfont access
    # ----------------------------------------------------------------------
    # Allow access from all domains for webfonts.
    # Alternatively you could only whitelist your
    # subdomains like "subdomain.example.com".
    <IfModule mod_headers.c>
      <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
        Header set Access-Control-Allow-Origin "*"
      </FilesMatch>
    </IfModule>
Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More