- Status
- Gelöst
- Gemeldet für
- WPML Multilingual CMS 4.6.5
- Zugehöriges Plugin/Theme
- Divi
- Themen-Tags
- Compatibility
Übersicht über das Problem
Wenn Sie das Divi-Theme zusammen mit WPML verwenden, haben Sie vielleicht bemerkt, dass bei einer Änderung der Standardsprache Ihrer Website die Übersetzung für den globalen Footer nicht mehr angezeigt wird.
Problemumgehung
Bitte stellen Sie sicher, dass Sie ein vollständiges Backup Ihrer Website haben, bevor Sie fortfahren.
- Öffnen Sie die Datei functions.php Ihres Themes.
- Fügen Sie diesen Code hinzu:
// WPML Workaround for compsupp-6904 add_filter( 'et_pb_module_shortcode_attributes', 'wpml_compsupp6904_translate_global_module_id', 10, 5 ); function wpml_compsupp6904_translate_global_module_id( $props, $attrs, $render_slug, $_address, $content ) { if ( isset( $props['global_module']) && is_numeric($props['global_module']) ) { $props['global_module'] = apply_filters( 'wpml_object_id', $props['global_module'] , get_post_type( $props['global_module'] ) , TRUE ); } return $props; }