WPML

问题概述

当使用 Table of Contents (TOC) 插件时,您可以翻译诸如Heading text、Show text或Hide text等管理后台字符串,但这些翻译不会显示在前端。

临时解决方法

请在继续操作之前完整备份您的站点。

  1. 打开 …/wp-content/plugins/table-of-contents-plus/toc.php 文件。
  2. 找到第 37 行。
  3. 将
    // do the magic
    $toc_plus = new TOC_Plus();
    替换为
    // do the magic
    add_action( 'init', 'toc_init' );
    function toc_init() {
        global $toc_plus;
    
        $toc_plus = new TOC_Plus();
    }

所有已知问题

需要有关此问题的帮助?

提出支持问题,我们将与您一起调查。