SOLVED: Template condition does not work as expected with Polylang & WPML

Hi @aslotta,

We generally do not recommend the approach of making Bricks templates non-translatable (see: How to use Polylang with Bricks – Bricks Academy). However, if you find that this method works well for your setup, you can disable template translation using this filter since it cannot be done directly in Polylang when the setting is defined through wpml-config.xml:

add_filter('pll_get_post_types', function( $post_types, $is_settings ) {
    unset( $post_types[ 'bricks_template' ] );
    return $post_types;
}, 10, 2);

But it seems like the issue @HOSEIN is different since he had templates translation enabled already. Probably best to share temporary admin access to help@bricksbuilder.io so we can investigate :slight_smile: @HOSEIN please include a link to this forum thread as well as WAIT: Component / polylang issue in builder in your email so we can look into both.

1 Like