Issue with Table of Contents (TOC) Detection in Avada

#953494
  • Hello Rank Math Team,

    I am trying to get the Table of Contents (TOC) on my site to be detected properly, but despite following the official guide here: https://rankmath.com/kb/table-of-contents-not-detected/, Rank Math is still unable to detect it.

    I have followed all the suggested steps, including:

    Implementing the code in the rank-math.php file,
    Clearing the server cache,
    Verifying that the TOC is being generated correctly by Avada.
    The Table of Contents I am using comes directly from the Avada theme. Despite all this, Rank Math still fails to detect the TOC as expected.

    Could you please help me resolve this issue? If there’s anything I might be overlooking, I would appreciate further guidance.

    Thank you in advance for your support!

Viewing 1 replies (of 1 total)
  • Hello,

    We apologize for the issue you are facing with the Table of Contents (TOC) detection in Rank Math. Thank you for following the official guide and for providing detailed information about the steps you’ve taken.

    Since you are using the TOC from the Avada theme, it may not be included in the list of supported plugins that Rank Math checks for TOC detection. To ensure that Rank Math can recognize your TOC, you might need to add Avada’s TOC plugin to the detection list manually.

    Here’s how you can do that:

    1. Open your rank-math.php file in your theme.

    2. Add the following code snippet:

      /**
      * Filter to add plugins to the TOC list.
      *
      * @param array TOC plugins.
      */
      add_filter( 'rank_math/researches/toc_plugins', function( $toc_plugins ) {
            $toc_plugins['avada-directory/avada-plugin-file.php'] = 'Avada TOC'; // Replace with actual path and name
         return $toc_plugins;
      });

      Make sure to replace avada-directory/avada-plugin-file.php with the correct path to the Avada TOC plugin file.

    3. Save the changes and check if Rank Math can now detect the TOC.

    If you continue to experience issues, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further. We appreciate your patience and understanding as we work to resolve this matter!

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.