- 状态
- 已由作者解决
- 相关插件/主题
- BeTheme
- 主题标签
- Compatibility
问题概述
使用 BeTheme 的 BeBuilder 实时编辑器时,通过 WPML 的高级翻译编辑器翻译的内容可以成功翻译,但页面的设计不会复制到翻译中。
临时解决方法
在继续操作之前,请务必对您的站点进行完整备份。
- 打开 …/wp-content/themes/betheme/functions/builder/class-mfn-builder-front.php 文件。
- 找到第 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) ){