Issue with Table of Contents

#28296
  • Hi. For mindfultravelexperiences.com. Since the last plugin updates there is an alert in every post (backend) that no table of contents is used. But the toc is there and shows on public posts. Any idea?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

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

    We made a few changes in the plugin on the recent update and it is now required to register the ToC plugin that you are using.
    You can do this by using the following code on your theme’s functions.php file:

    /**
     * Filter to add plugins to the TOC list.
     *
     * @param array TOC plugins.
     */
    add_filter( 'rank_math/researches/toc_plugins', function( $toc_plugins ) {
           $toc_plugins['plugin-directory/plugin-filename.php'] = 'Plugin Name';
        return $toc_plugins;
    });

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Do I copy it as it is or do i have to set any folder names too?

    I set the path to the plugin folder/filename and seems to work. OK.

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/?rate=5#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

The ticket ‘Issue with Table of Contents’ is closed to new replies.