Table of Contents plugin not detected by Rank Math

#34284
  • Resolved Svar
    Rank Math free

    I always get the message that ”You don’t seem to be using a Table of Contents plugin”
    although I have the Easy Table of Contents plugin enabled, and I have the Posts, Pages and Products enabled in that plugin.
    https://wordpress.org/plugins/easy-table-of-contents/

    How come it is not detected? What to do?
    Thanks,

    • This topic was modified 4 years, 8 months ago by Svar.
Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Please add the following code snippet to your theme’s functions.php file to ensure that Rank Math detects your ToC plugin:

    /**
     * Filter to add plugins to the TOC list.
     *
     * @param array TOC plugins.
     */
    add_filter( 'rank_math/researches/toc_plugins', function( $toc_plugins ) {
           $toc_plugins['easy-table-of-contents/easy-table-of-contents.php'] = 'Easy Table of Contents';
        return $toc_plugins;
    });

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Table of Contents plugin not detected by Rank Math’ is closed to new replies.