duanmanZ
|
Background of the issue:
I am trying to translate my website using WPML.
Symptoms:
I am unable to translate my website.
Questions:
Unable to translate my website
|
Bruno Kos
Supporter
Languages:
English (English )
German (Deutsch )
French (Français )
Timezone:
Europe/Zagreb (GMT+01:00)
|
We are still checking this as we had another report. I will get back to you as soon as I have some news on the matter.
|
Bruno Kos
Supporter
Languages:
English (English )
German (Deutsch )
French (Français )
Timezone:
Europe/Zagreb (GMT+01:00)
|
Can you please try the following:
1. Edit the `plugins/elementor-pro/core/utils.php` file and locate the `get_current_post_id` function. Update the function as follows:
public static function get_current_post_id() {
if ( ! is_admin() && isset( Plugin::elementor()->documents ) ) {
return Plugin::elementor()->documents->get_current()->get_main_id();
}
}
2. After making this change, try to reproduce the error by resaving any Elementor item. You can use this URL to test it: [hidden link).
3. Once you've resaved the item, check if the gear icon appears for the Spanish language (or any other language).
|
duanmanZ
|
Glad to receive your reply
Unfortunately, I don't know how to edit php files, I can provide ftp and other related information. Can you help me operate it?
|
Bruno Kos
Supporter
Languages:
English (English )
German (Deutsch )
French (Français )
Timezone:
Europe/Zagreb (GMT+01:00)
|
I marked your next reply as private so you can share FTP and WordPress data.
|
Bruno Kos
Supporter
Languages:
English (English )
German (Deutsch )
French (Français )
Timezone:
Europe/Zagreb (GMT+01:00)
|
Looks to be working now. I tested with
public static function get_current_post_id() {
if ( isset( Plugin::elementor()->documents ) && ! is_null( Plugin::elementor()->documents->get_current() ) ) {
return Plugin::elementor()->documents->get_current()->get_main_id();
}
return get_the_ID();
}
I resaved hidden link couple of times but noticed no new entries in ATE logs, translations got completed successfully.
|