Table of Contents

#91226
  • Resolved Lynn
    Rank Math free

    Hi there,

    I recently changed themes. The new theme from Code Supply Company comes with a mandatory plugin called powerkit. This plugin has a table of contents included in it, but Rank Math is not picking it up. I get dinged for not having the table of contents. Is there a way I can solve this in the settings?

    Thanks,

    Lynn

Viewing 1 replies (of 1 total)
  • Hello Lynn,

    Thank you for getting in touch and I am extremely sorry about the trouble this might have caused.

    You can use the following to make Rank Math recognize our table of contents:

    
    /**
     * 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;
    });
    

    You just need to change plugin-directory and plugin-filename to the plugin related info then add the filter to your theme functions.php

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    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’ is closed to new replies.