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.
|
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
|
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.
|
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.
|
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?
|