跳过导航

Waiting for author

Topic Tags: Compatibility

Overview of the issue

When using WPML with the Flatsome theme and translating pages manually (using the native WordPress editor method), any changes made in the default language overwrite the translations. This issue occurs specifically when the UX Builder is used to edit the content.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Open your theme’s functions.php file.
  • Add the following snippet:
    add_filter( 'wpml_pb_is_editing_translation_with_native_editor', function( $isTranslationWithNativeEditor ) {
        if ( isset( $_POST['action'] ) && 'ux_builder_save' === $_POST['action'] ) {
            return true;
        }
    
        return $isTranslationWithNativeEditor;
    } );
    

留下回复

紧扣主题并尊重他人。如果您需要帮助解决与本帖无关的问题,请使用我们的 Support Forum 开始聊天或提交票据。

您可以使用这些标签:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>