Visão geral do problema
Ao usar o Addon Elements for Elementor com o WPML, você pode enfrentar o seguinte problema: um modelo salvo exibido no widget Content Switcher, Modal Popup, Dropbar ou Data Table permanece no idioma padrão nas páginas traduzidas.
Solução alternativa
Adicione o seguinte código ao arquivo functions.php do seu tema filho:
PHP
add_filter( 'elementor/documents/get/post_id', function ( $id ) {
if ( 'elementor_library' === get_post_type( $id ) ) {
$id = apply_filters( 'wpml_object_id', $id, 'elementor_library', true );
}
return $id;
} );Com ele, os widgets Content Switcher, Modal Popup, Dropbar e Data Table exibem o modelo traduzido em páginas traduzidas.