To be clearer, I would like to know where to go and find ‘plugin-directory/plugin-filename.php’ and ‘Plugin Name’ to insert them in the themeās functions.php file.
Thank you.
I will be installing the Easy Table of Contents plugin, therefore, is the code below that I configured Correct for inserting in the child theme 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[‘easy-table-of-contents/easy-table-of-contents.php’] = ‘easy-table-of-contents’;
return $toc_plugins;
});
Hello,
Thank you for contacting the support.
As this requires modification in the plugin files, we strongly recommend you reach out to the devs of the Easy Table of Contents plugin as they would be in a better position to assist you.
You can show this guide to the devs: https://rankmath.com/kb/table-of-contents/
Please feel free to let us know if you have any questions.
Thank you.
This is to inform you that the Easy Table of Contents plugin works with Rank Math even without even inserting any code into the child theme functions.php file!
So you should update the list of compatible plugins for TOC.
Hello,
Yes, Rank Math should be able to read that table of contents plugin.
Can you please ensure that you are using the latest version of both Rank Math and Easy Table of Contents plugins?
With that said, I will check this one with our editors. Thank you so much.
Looking forward to helping you.
Great! Yes, I am using updated plugins of Rank Math as well as Easy Table of Contents.
Hello,
We are super happy that we could address your concern.
If you 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.