Home›Support›English Support›[Waiting for user feedback] Translated Custom HTML widget strings not appearing on front-end even after memory limit increase an...
[Waiting for user feedback] Translated Custom HTML widget strings not appearing on front-end even after memory limit increase an...
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.
Elementor users - please update WPML to the latest version to maintain compatibility. More details here - https://wpml.org/changelog/2024/12/wpml-4-6-15-critical-update-for-elementor-sites/
Background of the issue:
I have strings in Custom HTML widgets which were translated, but not showing on the front end of the website.
I increased memory limit to 256M
I deleted existing strings under WPML > String Translation
I re-scanned the parent theme and child theme under WPML > Theme and plugins localization
I added translations for the strings again.
I cleared website cache and refreshed the front end of the website.
The issue can be seen at the bottom of this page: hidden link
Symptoms:
The translations are saved, but they still don't appear on the front end of the website, even after clearing cache and viewing in incognito mode. Deactivating all plugins except WPML plugins did not resolve the issue.
Questions:
Can you help us solve the translations not appearing on the front end of the website?
I have noticed that performing the following steps solves this issue:
Switch the theme to Twenty Twenty-One
Install the "Classic Widgets" plugin from the Plugins screen in WordPress
Navigate to Appearance > Widgets
Click, drag and drop the original widget from "Inactive Widgets" to the Footer widget area
Switch the theme back to the original (in our case, Genesis with child theme)
Navigate to Appearance > Widgets
Click, drag and drop the original widget from the widget area where it has been automatically assigned (in my case "Primary Sidebar"), to the position where it 'should' go (in our case, "Footer 3")
Navigate to WPML > String Translation
Find a new string with the Domain of "Widget" and the Name of "widget body" which has the same text shown in the Custom HTML widget string which does not show its translation on the front end of the website
Translate the string in the new, "widget body" field.
Wait for a message to confirm the translation is saved.
Refresh the front end of the website.
The translation appears.
Deactivate and unistall the Classic Widgets plugin (Genesis uses Classic Widgets without requiring this plugin)
Can someone let us know why it takes these steps for the translation to appear, instead of appearing automatically from the Custom HTML widget?
Or why the "widget body" string doesn't appear until we switch to Twenty Twenty-One theme?
I added a "test" widget with Custom HTML widget, navigated to WPML > String Translation
I added a translation to the 'test' Custom HTML widget. I refreshed the front end of the website, and the translation now appears. But why won't it show the translation for the previous Custom HTML widgets?
A screenshot is attached to show what is described above.
Hello, I just saw this message but will be away for the holidays. Can we please leave this ticket open until the first week of January? I will be able to install the theme at that time.