WPML
ステータス
解決済み
解決されたバージョン
Avada 7.2
関連するプラグイン/テーマ
Avada

問題の概要

AvadaテーマのFusion Builderのグローバル要素を含む投稿を翻訳した後、コンテンツが翻訳された言語ではなくデフォルト言語で表示されます。

回避策

wp-content/plugins/sitepress-multilingual-cms/compatibility/fusion_builder/フォルダーにあるwpml-compatibility-plugin-fusion-global-element-hooks.phpファイルを編集し、以下のコードを追加します。

		add_filter(
			'the_content',
			[ $this, 'translate_global_element_ids' ],
			self::BEFORE_ADD_GLOBAL_ELEMENTS_PRIORITY
		);
…追加先は以下のコードの直後です。
	public function add_hooks() {
		add_filter(
			'content_edit_pre',
			[ $this, 'translate_global_element_ids' ],
			self::BEFORE_ADD_GLOBAL_ELEMENTS_PRIORITY
		);

すべての既知の問題 →