WPML
ステータス
開発者により解決済み
関連するプラグイン/テーマ
BeTheme
トピックタグ
Compatibility

問題の概要

BeThemeのBeBuilderライブエディタを使用する場合、WPMLの高度な翻訳エディタで翻訳したコンテンツは正常に翻訳されますが、ページのデザインは翻訳にコピーされません。

回避策

作業を進める前に、必ずサイトの完全なバックアップを作成してください。


  1. …/wp-content/themes/betheme/functions/builder/class-mfn-builder-front.php ファイルを開きます。

  2. 146行目を探し、以下の部分を:
    $dir = wp_upload_dir()['basedir'] . $path;
    
    if( get_post_meta($this->post_id, 'mfn-page-local-style', true) && file_exists($dir) ){

    次のように置き換えます:

    $css_file_path = '/betheme/css/post-'. $this->post_id .'.css';
    $dir = wp_upload_dir()['basedir'] . $css_file_path;
    
    if( get_post_meta($this->post_id, 'mfn-page-local-style', true) && file_exists($dir) ){

すべての既知の問題 →