- Status
- Resolved
- Resolved in
- Avada 7.2
- Related plugin/theme
- Avada
Overview of the issue
After translating a post that contains global elements from the Fusion Builder in Avada theme, content appears in the default language instead of the translated language.
Workaround
Edit the wpml-compatibility-plugin-fusion-global-element-hooks.php file found in the wp-content/plugins/sitepress-multilingual-cms/compatibility/fusion_builder/ folder and add the following code:
add_filter( 'the_content', [ $this, 'translate_global_element_ids' ], self::BEFORE_ADD_GLOBAL_ELEMENTS_PRIORITY );… just after this code:
public function add_hooks() {
add_filter(
'content_edit_pre',
[ $this, 'translate_global_element_ids' ],
self::BEFORE_ADD_GLOBAL_ELEMENTS_PRIORITY
);