Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing issues with fonts not loading on their English domain and being logged out when switching between their German and English domains using WPML with Elementor.

Solution:
1. Resolve Login Session Issues Across Domains:
- Enable Auto Sign-in/Sign-out in WPML → Languages under Language URL format.
- Update

wp-config.php

for dynamic URLs with the following code:

if ( isset( $_SERVER['HTTP_HOST'] ) ) {<br />  define( 'WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] );<br />  define( 'WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] );<br />}

2. Address Font Issues on Your English Domain:
- Clear all caches (WordPress, Elementor, server, and browser).
- Check and adjust Elementor's global typography settings.
- Regenerate Elementor's CSS & Data.

3. Increase WordPress Memory Limit:
- Edit

wp-config.php

to increase the memory limit:

define( 'WP_MEMORY_LIMIT', '256M' );

If these steps do not resolve the issue or if the solution seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 2 replies, has 1 voice.

Last updated by markoF-2 1 month ago.

Assisted by: Kor.

Author Posts
November 20, 2025 at 6:35 pm #17596901

markoF-2

Background of the issue:
I am using WPML with two domains: prema-yogatherapie.ch for DE and prema-yogatherapy.ch for EN languages. I am trying to resolve issues related to fonts not working on my EN domain and login sessions across different language domains.

Symptoms:
Fonts don't work on my EN domain, and I am logged out from WordPress when switching from DE to EN domain. DE is my main language and EN are the translations.

Questions:
Is there a clean instruction on how to fix the font issue without elementor_font_files?
Is there a solution for staying logged in when switching between DE and EN domains?

November 20, 2025 at 6:53 pm #17596926

markoF-2

I am still getting bad URI or cross-site access not allowed source on my EN domain.

The logout issue was resolved

November 21, 2025 at 6:58 am #17597446

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I've checked this link prema-yogatherapy.ch and it's redirecting to hidden link

I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

November 24, 2025 at 6:46 am #17602990

markoF-2

I solved it by adding this to the htaccess file

Header set Access-Control-Allow-Origin "*"