I installed the TranslatePress plugin, but certain dynamic strings from Elementor widgets don’t translate. How can I fix this?

Hire Now!

Whether you’re looking to launch your brand, showcase your portfolio, or open an online store, we’re here to bring your ideas to life.

I installed the TranslatePress plugin, but certain dynamic strings from Elementor widgets don’t translate. How can I fix this?

  • Post Created: 2 months ago
  • Views: 6

Questioner:

Ongun Çakal

Answer

Dynamic strings in Elementor widgets might not be detected by TranslatePress. Enable “Automatic Translation” in TranslatePress settings and use the string translator tool to add missing translations.

Alternatively, manually add strings using custom translation hooks:

php\n add_filter('gettext', 'custom_translation', 10, 3);\n function custom_translation($translation, $text, $domain) {\n if ($text === 'Original String') {\n $translation = 'Translated String';\n }\n return $translation;\n }\n \n\n---

Discussion