Overview of the Issue
When using Flatsome with WPML, some texts cannot be translated: the header contact hours and the blog excerpt suffix in the theme options, the name and company of the Testimonial element, the text of the header button, and the title of the Products element.
Workaround
- Go to WPMLSettingsCustom XML Configuration, add the following XML and save:
XML
<wpml-config> <shortcodes> <shortcode> <tag>testimonial</tag> <attributes> <attribute>name</attribute> <attribute>company</attribute> <attribute type="link">link</attribute> </attributes> </shortcode> <shortcode> <tag>header_button</tag> <attributes> <attribute>text</attribute> <attribute type="link">link</attribute> </attributes> </shortcode> <shortcode> <tag>ux_products</tag> <attributes> <attribute>title</attribute> </attributes> </shortcode> </shortcodes> <admin-texts> <key name="theme_mods_flatsome"> <key name="contact_hours" /> <key name="blog_excerpt_suffix" /> </key> </admin-texts> </wpml-config>
- Translate the theme option texts in WPMLString Translation.
- Translate the pages that use these UX Builder elements again.