Urgent: Table of Contents Plus Not Recognize By RankMath
-
Hello there,
Due to the Google Core Web Vital, my Ad network (EZOIC) strongly suggests that I should replace Easy Table of Contents with Table of Contents Plus for better site performance.
And, since I have installed it, RankMath does not recognize it. Rather, it keeps suggesting I should Use the Table of Contents to break down my text even when it is there.
Here’s the response from RankMath.
Hello Bamidele,
We only detect Table of Contents if you are using one of these plugins to add a table of contents section. https://rankmath.com/kb/score-100-in-tests/#table-of-contents
Unfortunately, there is no other way to look for a Table of Contents section other than to look for pre-installed ToC plugins like the ones listed above. You also use the filter provided in the above link to manually add your plugin to the compatibility list (or ask your ToC plugin provided to add it to their plugin)
You can also use this code in your theme’s functions.php file to manually tell Rank Math that you are already using a Table of Contents and to pass that test.
https://pastebin.com/RUdAkgMmSecond Response
The integration needs to be added from the plugin developer as they are in a better position to do that. This depends on the way the plugin has been coded and where they are adding filters or any other piece of code.If you show that code to the TOC plugin developer he’ll probably be able to add that and push an update to make the plugin compatible with Rank Math.
Third Response
This is the code that should be provided to the devs in order to make their plugin compatible with Rank Math:/**
* 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;
});Here’s the link to the above filter:
https://rankmath.com/kb/filters-hooks-api-developer/#add-toc-pluginHope that helps.
From me: Please can you please integrate this and push an update so that it can be seen by RankMath. Thank You, Developer Of Table of Contents Plus.
I look forward to hearing about this development.
The page I need help with: [log in to see the link]
- The topic ‘Urgent: Table of Contents Plus Not Recognize By RankMath’ is closed to new replies.