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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: America/Los_Angeles (GMT-07:00)
Tagged: Documentation request
This topic contains 10 replies, has 0 voices.
Last updated by Bobby 21 hours, 45 minutes ago.
Assisted by: Bobby.
Author | Posts |
---|---|
August 20, 2025 at 3:45 pm #17334894 | |
Nohemi |
Background of the issue: Symptoms: Questions: |
August 20, 2025 at 5:59 pm #17335343 | |
Bigul WPML Supporter since 01/2013
Languages: English (English ) Timezone: Europe/Vienna (GMT+02:00) |
Hello, Welcome to the WPML support forum. Before passing this thread to my colleague, I would like to share some suggestions and possible solutions for the issues you mentioned. To help you faster, I have enabled the option to share debug information in this ticket. Please follow the steps in this link to provide it: This may be related to the following tickets. Please review them and share your feedback. https://wpml.org/forums/topic/i-need-custom-xml-to-translate-elementor-icon-list-contact-url-link/ Our documentation for translating custom Elementor widgets. It includes step-by-step instructions. https://wpml.org/errata/elementor-non-translatable-dynamic-tags-in-elementor-icon-list/ (It is fixed in the latest version) -- Bigul |
August 20, 2025 at 6:21 pm #17335370 | |
Bobby WPML Supporter since 04/2015
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
Hi there, In short, WPML doesn’t automatically “know” about the extra controls you added to your custom Elementor Dynamic Tag which is what we have to configure first before they can be translated. Please review the following documentation on how to translate custom elements with WPML. Let me know your results. |
August 21, 2025 at 6:59 am #17336096 | |
Nohemi |
Hi, I had already read this documentation for my custom widgets (it works without any problem) but it doesn’t mention Elementor Dynamic tags. I tried with no success: <wpml-config> Your code seems to be locked on the default fields : https://wpml.org/errata/elementor-non-translatable-dynamic-tags-in-elementor-icon-list/ Is it possible to translate custom dynamic tag controls ? |
August 22, 2025 at 7:47 am #17339574 | |
Nohemi |
After testing, if I add my control name to this array : https://wpml.org/errata/elementor-non-translatable-dynamic-tags-in-elementor-icon-list/, the field seems translatable. Maybe a filter ? |
August 25, 2025 at 4:37 pm #17345853 | |
Bobby WPML Supporter since 04/2015
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
I would like to request temporary access (wp-admin and FTP) to your site to test the issue. **Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken ** I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/ NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin. Thank you, |
August 27, 2025 at 10:05 am #17351280 | |
Nohemi |
Sorry, I don't have more time to devote to this problem. I don't understand why you need access. My question is simple : is it possible to translate custom dynamic tag controls ? If yes, how ? |
August 27, 2025 at 9:57 pm #17353013 | |
Bobby WPML Supporter since 04/2015
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
We don’t explicitly mention dynamic tags in our documentation, but you should be able to translate them. In fact, we have an errata that addresses a similar issue. That said, this isn’t a common request and at the moment I have not found another recently reported case. Without access to either your staging or live environment, the guidance I can provide may not fully reflect your specific setup especially since you are using a custom dynamic tag. If you’d like, we can create a sandbox environment and attempt to reproduce the issue. Here’s a sandbox I’ve already set up for us: |
August 28, 2025 at 8:21 am #17353833 | |
Nohemi |
Each time, I don't understand why you can't test on your staging environnement. You have just to create a dynamic tag with custom controls. Just copy the example in documentation and you can see that it doesn't work. Okay, if in this case it works for you, I will share temporary access. Anyway, of course without ftp access I crashed your sandbox. I can too share access to my sandbox where I reproduced the issue. |
August 29, 2025 at 1:21 am #17356544 | |
Bobby WPML Supporter since 04/2015
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
Thank you, if you have a sandbox that would expedite things. I have enabled the private field reply |
August 31, 2025 at 2:57 pm #17360529 | |
Bobby WPML Supporter since 04/2015
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
Hi there, please go to WPML->string translation and let me know if the fields showing now are the desired fields. to verify the fields wraped in a gettext call are showing ok the content of the text-param value is not translatable, however i am not sure you wanted that specific parameter to be translatable. Also note the title picked up for translation now under the domain elementor-random-number-dynamic-tag I was able to register it using public function render(): void { // Grab settings $text = (string) $this->get_settings( 'text_param' ); $number = (int) $this->get_settings( 'number_param' ); $select = (string) $this->get_settings( 'select_param' ); // --- WPML translation for the text field --- // Use a stable domain and a reasonably unique name to avoid collisions across pages. $domain = 'elementor-random-number-dynamic-tag'; $post_id = function_exists('get_the_ID') ? (int) get_the_ID() : 0; $name = sprintf( 'text_param|post:%d', $post_id ); // 1) Register the original string (safe to leave in place permanently) do_action( 'wpml_register_single_string', $domain, $name, $text ); // 2) Fetch the translated version (if any) $text_translated = apply_filters( 'wpml_translate_single_string', $text, $domain, $name ); // ---- your actual output ---- // (Example: echo the translated text, the random number, etc.) echo esc_html( $text_translated ); // If you still want the random number, keep your original: // echo rand(); } Let me know your results, please. |