Skip Navigation

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

Problem:
You are experiencing a Yoast license issue on your WordPress site. Specifically, the license works on the primary language site but not on the secondary language (French) site. This discrepancy arises because the WordPress and Site addresses for the original language settings are the same, but they differ in the secondary language.
Solution:
If you're experiencing this issue, we suggest verifying the domains and updating your Yoast account accordingly. In doubt please consult the Yoast support team.

Please note that this solution might be outdated or not applicable to your specific case. 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 the problem persists, please open a new support ticket at WPML support forum for further assistance.

0% of people find this useful.

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 15 replies, has 0 voices.

Last updated by ronaldT-5 2 months ago.

Assisted by: Andreas W..

Author Posts
February 1, 2025 at 9:44 pm #16659311

ronaldT-5

1) Yes, I did.

2) I was thinking the same. But, it is very expensive for me at the moment since the CAN$ is a lot weaker than the US$ at the moment.

February 1, 2025 at 9:50 pm #16659321

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Please check out this comment:
https://wpml.org/forums/topic/wordpress-site-url-settings/#post-16659307

February 1, 2025 at 10:04 pm #16659327

ronaldT-5

Yes, I have spotted the provided code. Thanks for that. But, since I do not have a child theme nor a snippet plugin, I need to ask either Elementor or hosting as to where to insert it.

February 1, 2025 at 10:08 pm #16659328

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I would like to offer to help you with the implementation and request temporary access (wp-admin and FTP) to the site to investigate the issue further.

The required fields are below the comment section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.

IMPORTANT
Please be sure to back up the site and database before granting us access.

If you cannot see the "wp-admin / FTP" fields, your post and site credentials will be set to "PUBLIC". DO NOT publish the data unless you see the required wp-admin / FTP fields.

The private reply form looks like this:
hidden link

The next time you reply, click on "I still need assistance".

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We are not permitted to access any access information that was not specifically submitted on this ticket in the private response form.

February 1, 2025 at 10:35 pm #16659348

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I tried it this way, so that Yoast recognizes the main site URL while the current language is French, but it did not solve the issue:

public function filter_home_url_before() {
    add_filter( 'wpml_home_url', [ $this, 'wpml_get_home_url' ], 10, 2 );
}

public function wpml_get_home_url( $url, $language ) {
    // Check if it's the French language or any other language
    if ($language == 'fr') {
        // Force Yoast to use the main domain for French (and others if needed)
        return '<em><u>hidden link</u></em>';
    }
    
    // Return the default domain for all languages (in this case, English or fallback)
    return '<em><u>hidden link</u></em>';
}

It seems to work on wp-admin inside Yoast, for example for Redirects, but it does not work inside Elementor.

My apologies, but my suggestion doesn't seem to solve the issue and I am not aware of any different approach.

I will consult the Compatibility Team about this next week and then get back to you.

IMPORTANT:
Please take note that you are not supposed to make manual edits in Elementor if you are translating the content with the WPML Translation Editor, as this editor will overwrite any changes.

Why are you actually trying to change the settings?

February 4, 2025 at 10:10 am #16665906

ronaldT-5

Yoast finally woke up, and was told to ONLY activate the Yoast SEO Premium license on the home-alarm.ca domain (site).