Skip Navigation

Waiting for author

Topic Tags: Compatibility

Overview of the issue

When using the Table of Contents (TOC) plugin, you are able to translate admin strings such as Heading text, Show text or Hide text, however their translations do not appear on the front-end.

Workaround

Please, make a full backup of your site before proceeding.

  1. Open the …/wp-content/plugins/table-of-contents-plus/toc.php file.
  2. Look for line 37.
  3. Replace
    // do the magic
    $toc_plus = new TOC_Plus();
    

    With

    // do the magic
    add_action( 'init', 'toc_init' );
    function toc_init() {
        global $toc_plus;
     
        $toc_plus = new TOC_Plus();
    }
    

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>