Salta la navigazione

Resolved

Resolved in: 4.4.0

Overview of the issue

When you create a page using the Avia Page Builder, the content will not be available for translation through WPML Classic Translation Editor nor Advanced Translation Editor.

Workaround

We’re working on a fix for this issue. Until then, you can use the following steps to fix the issue.

1. Go to the WPMLSettings page and click the Custom XML Configuration tab. There, add the following snippet and save.

Avia Page Builder Workaround
<wpml-config>
    <gutenberg-blocks>
        <gutenberg-block type="core/shortcode" translate="1">
            <xpath>/*</xpath>
        </gutenberg-block>
    </gutenberg-blocks>
</wpml-config>

2. Edit the class-wpml-compatibility-theme-enfold.php file found in the ../wp-content/plugins/sitepress-multilingual-cms/compatibility/enfold/ folder and on line 56 replace:

$content = get_post_meta( $post_id, '_aviaLayoutBuilderCleanData', true );

With:

$content = str_replace( "\r\n", "\n", get_post_meta( $post_id, '_aviaLayoutBuilderCleanData', true ) );

WPML 4.4.0 Beta

We’ve releassed a beta which should solve this issue. Please, keep in mind that it is a beta version which is under testing and shouldn’t be used in production sites. You can download it here:

Downloads

 

2 risposte a “Enfold's Avia builder content is not available for the translation”