Hello,
We apologize for the issue you are facing with the Table of Contents on your site. It seems that you have already tried the steps mentioned, but it is still not working as expected.
To help you further, we recommend checking if you are using one of the supported Table of Contents plugins listed in our documentation. Rank Math can detect the Table of Contents if you have any of the following plugins installed:
If you are using a different plugin, you may need to add a filter to your theme’s rank-math.php file to help Rank Math detect it. Here’s how you can do that:
/**
* 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;
});
Make sure to replace plugin-directory/plugin-filename.php with the path to your TOC plugin file and Plugin Name with the name of your TOC plugin.
If you continue to experience issues, please reply to this ticket, and a human agent from the Rank Math Support team will take over and assist you further. Thank you for raising this concern!
Sources:
Why Isn’t Rank Math Detecting the Table of Contents? » Rank Math
How to Use a Table of Contents to Improve Content Readability » Rank Math
Hello,
Please note that Rank Math can only open the links in a new tab for external links. The links in the Table of Contents are internal.
We’ve checked your site, and it seems that one of your plugins or active theme is opening your internal links in a new tab.
Assuming you are using the latest version of all the plugins and the themes (please update if not yet), to determine that, please follow this troubleshooting guide:
https://rankmath.com/kb/check-plugin-conflicts/
Here is a video you can follow as well: https://www.youtube.com/watch?v=FcIWRhcUP2c
Only the site admin would know and your users won’t be affected by this troubleshooting.
Looking forward to helping 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.