Saltar al contenido Saltar a la barra lateral

Este es el foro de soporte técnico de WPML, el plugin multilingüe de WordPress.

Todas las personas pueden leerlo pero solo los clientes de WPML pueden ingresar comentarios. El equipo de WPML responde en los foros 6 días a la semana, 22 horas por día.

Este tema contiene 2 respuestas, tiene 1 voz.

Última actualización por Łukasz Rydygel hace 2 meses, 3 semanas.

Asistido por: Łukasz Rydygel.

Autor Publicaciones
febrero 13, 2026 a las 10:39 #17820003

La Colmena Tecnológica

Uso Elementor con WPML y ATE para traducir automáticamente mis páginas. Necesito que un widget específico tenga contenido diferente en cada idioma (enlaces, popups o IDs distintos).

¿Es recomendable duplicar el widget y usar la visibilidad por idioma de WPML para mostrar uno diferente en cada idioma, en lugar de gestionarlo desde el ATE? ¿Es esta la mejor práctica para evitar que el ATE sobrescriba cambios manuales?

febrero 13, 2026 a las 10:58 #17820033

La Colmena Tecnológica

No se si se puede hacer, pero lo que quiero es modificar un widget de Elementor que es un shortcode, en otras ocasiones es un botón que llama a un popup, etc. y que el resto de esa página se siga traduciendo con el ATE, pero un widget en concreto pueda cambiarlo manualmente, ¿eso se puede hacer?

febrero 13, 2026 a las 12:01 #17820350

Łukasz Rydygel

Hello Mario,

thank you for reaching out. My name is Lukas and I am a developer at WPML.

Regarding your question: I advise against duplicating the widget and trying to manage it manually by hiding/showing it per language.

If you manually modify the layout in the translated version, you break the synchronization with the Advanced Translation Editor (ATE). The next time you make a small text change to the original page and open the ATE, it will try to re-sync the layout and will likely overwrite your manual changes or cause errors.

The best and most stable approach is to configure WPML to recognize the specific attributes inside your Shortcode (like the ID or URL) as "translatable fields." This allows you to keep using the ATE for the whole page while simply entering a different ID (e.g., for a different popup) in the translation column.

We need to add a small configuration snippet to WPML > Settings > Custom XML Configuration. It looks like this:

<wpml-config>
  <shortcodes>
    <shortcode>
      <tag>your_shortcode_name</tag>
      <attributes>
        <attribute>id</attribute>
        <attribute>url</attribute>
      </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

Note: replace your_shortcode_name with the actual shortcode tag used by the widget.

Once this is added, when you open the translation in the ATE, you will see a field for the ID or URL. You can then leave the original ID for the main language and enter the specific localized ID for the translated version.
This ensures the page structure remains identical while allowing you to control exactly which popup or link loads in each language.

Best regards,
Lukas