WPML

问题概述

使用 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) ){

所有已知问题

仍然遇到此问题?

如果更新无法解决问题,请提出支持问题,我们将与您一起排查。