- Status
- Offen
- Gemeldet für
- WPML Multilingual CMS 4.6.13
- Zugehöriges Plugin/Theme
- Avada
- Themen-Tags
- Compatibility
Übersicht über das Problem
Wenn im Avada-Theme das „Gallery Widget“ in einem Beitrags-Template verwendet wird, werden Bilder, die dynamisch (Dynamic Source Option) über ein ACF-Repeater-Feld hinzugefügt wurden, nach der Übersetzung nicht in der Sekundärsprache angezeigt.
Problemumgehung
Bitte vergewissern Sie sich, dass Sie über ein vollständiges Website-Backup Ihrer Website verfügen, bevor Sie fortfahren.
- Öffnen Sie die Datei functions.php Ihres Themes.
- Fügen Sie das folgende Snippet hinzu:
// WPML Workaround for compsupp-7640 function wpml_compsupp7640_filter_fusion_gallery_image_shortcode($out, $pairs, $atts) { if (isset($atts['image_id']) && $atts['image_id'] == 0 && !empty($atts['image'])) { $atts['image_id'] = ''; } // Re-build the shortcode output with the modified attributes $out = shortcode_atts($pairs, $atts); return $out; } add_filter('shortcode_atts_fusion_gallery_image', 'wpml_compsupp7640_filter_fusion_gallery_image_shortcode', 10, 3);