WPML

Panoramica del problema

Quando usi Unlimited Elements for Elementor con WPML, potresti riscontrare il seguente problema: le immagini tradotte usando WPML Media Translation potrebbero apparire nella lingua predefinita del sito. Questo in genere interessa i widget per le immagini come CoverFlow Carousel.

Soluzione alternativa

Assicurati di avere un backup completo del tuo sito prima di procedere.

  • Apri il file …/wp-content/plugins/unlimited-elements-for-elementor/provider/wpml_integrate.class.php.
  • Cerca la riga 156.
  • Sostituisci:
    $alternateThumbID = apply_filters( 'wpml_object_id', $thumbID, 'attachment', false, self::$objWpmlSingleton->activeLanguage );
  • Con:
    $current_lang = apply_filters( 'wpml_current_language', null );
    $alternateThumbID = apply_filters( 'wpml_object_id', $thumbID, 'attachment', false, $current_lang );

Tutti i problemi noti