WP Bakery Page Builder and WPML Manual Translation Settings

If you have several languages enabled and you want to use manual translation of independently designed pages (WPML‘s Classic Translation Editor), you need to enable _wpb_shortcodes_custom_css TRANSLATE in Settings > Custom Fields Translation!

Otherwise, Visual Composer inline CSS will not show when the translated page is published. It will still show on Preview Page. Weird, but true.

I.e. For Hebrew you may need to change alignment and padding of elements. It breaks the page if Page Builder’s inline CSS translation is not enabled 🙁

Bonus: Custom XML Configuration

Some, not fully checked yet, WPML “Custom XML Configuration” settings for Yoast SEO and WP Bakery Page Builder. Includes translations of Raw HTML widget + Yoast Breadcrumbs configuration for WPML.

<wpml-config>
    <shortcodes>
        <shortcode>
            <tag encoding="base64">vc_raw_html</tag>
        </shortcode>
    </shortcodes>
    <custom-fields>
        <custom-field action="translate">_yoast_wpseo_title</custom-field>
        <custom-field action="translate">_yoast_wpseo_bctitle</custom-field>
        <custom-field action="translate">_yoast_wpseo_metadesc</custom-field>
        <custom-field action="translate">_yoast_wpseo_metakeywords</custom-field>
        <custom-field action="translate">_yoast_wpseo_focuskw</custom-field>
        <custom-field action="translate">_yoast_wpseo_focuskeywords</custom-field>
        <custom-field action="copy">_yoast_wpseo_meta-robots-noindex</custom-field>
        <custom-field action="copy">_yoast_wpseo_meta-robots-nofollow</custom-field>
        <custom-field action="copy">_yoast_wpseo_meta-robots-adv</custom-field>
        <custom-field action="ignore">_yoast_wpseo_canonical</custom-field>
        <custom-field action="ignore">_yoast_wpseo_redirect</custom-field>
        <custom-field action="translate">_yoast_wpseo_opengraph-description</custom-field>
        <custom-field action="translate">_yoast_wpseo_google-plus-description</custom-field>
        <custom-field action="translate">_yoast_wpseo_twitter-title</custom-field>
        <custom-field action="translate">_yoast_wpseo_twitter-description</custom-field>
        <custom-field action="translate">_yoast_wpseo_opengraph-title</custom-field>
        <custom-field action="copy-once">_yoast_wpseo_opengraph-image</custom-field>
        <custom-field action="copy-once">_yoast_wpseo_twitter-image</custom-field>
    </custom-fields>
    <custom-fields-texts>
        <key name="_yoast_wpseo_focuskeywords">
            <key name="*">
                <key name="keyword"/></key>
        </key>
    </custom-fields-texts>
    <admin-texts>
        <key name="wpseo_titles">
            <key name="title-*"/>
            <key name="metadesc-*"/>
            <key name="metakey-*"/>
            <key name="company_name"/>
            <key name="breadcrumbs-sep"/>
            <key name="breadcrumbs-home"/>
            <key name="breadcrumbs-prefix"/>
            <key name="breadcrumbs-archiveprefix"/>
            <key name="breadcrumbs-searchprefix"/>
            <key name="breadcrumbs-404crumb"/></key>
        <key name="wpseo_rss">
            <key name="rssbefore"/>
            <key name="rssafter"/></key>
        <key name="wpseo_social">
            <key name="og_default_image"/>
            <key name="og_frontpage_title"/>
            <key name="og_frontpage_desc"/>
            <key name="og_frontpage_image"/></key>
    </admin-texts>
</wpml-config>

May not be needed, but may help to some versions of plugin.

Share:
This entry was posted in WordPress and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *