I can't translate the text contained in a shortcode added via Elementor using the Heading widget on a WordPress page.
Example shortcode: [test-wpml string="Hello X."]
Original version : Fr, Translation : En
What works:
OK: use the shortcode directly in Gutenberg (by configuring the shortcode in WPML > Settings > Custom XML Configuration)
OK: find and translate the shortcode in Adv. CE
OK: Display the front page with the result of the correctly translated shortcode.
What doesn't work:
OK: use the shortcode in a Heading widget (or HTML or Custom code widget) by configuring the shortcode in WPML > Settings > Custom XML Configuration.
OK: find and translate the shortcode in ACE
KO: The front page displays the UNtranslated version of the shortcode.
It looks like you are already familiar with our documentation but for good measure, I will link it below, please give it a quick read and verify everything is set up OK:
I confirm that I read this page in full before contacting you. I have just redone it, taking into account the following paragraphs:
- Making Shortcodes Translatable
- Translating Registered Custom Shortcodes
No ID, no link and no hardcoded text in my case.
Thanks for the sandbox. I've just used it. Unfortunately it's worse, I can't see the shortcode in the Advanced Translation Editor. Could you help me ?
1. If you search for the shortcode directly in the ATE you can find it and tranlsate it, however, I can confirm that even after it still does not display.
2. Switching from Eleementor back to Guttenberg/standard WP Editor it works as expected.
3. Translating manually with Elementor it works OK also
Please share with me on here the code you use to add the shortcode
The topic ‘[Closed] Shortcode selfending with string in Elementor widget’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.