Table of contents compability

#903557
  • Resolved Mark Prahinog Nielsen
    Rank Math free

    Hi

    WordPress Breakdance builder plugin is compatible with Rank Math, but Rank Math can’t identify when table of contents is used. I keep getting error that Table of contents plugin is not used even though i use it in my blog post template in Breakdance.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    We apologize for the issue you are facing with Rank Math not detecting the Table of Contents in your blog post template using the Breakdance builder plugin.

    Currently, Rank Math checks for specific Table of Contents creation plugins to determine if a TOC is present. If the Breakdance builder does not have built-in compatibility recognized by Rank Math, it may not be detected automatically.

    To resolve this, you can add a filter to your theme’s rank-math.php file to inform Rank Math about the TOC plugin you are using. Here’s how you can do that:

    1. Create or edit the rank-math.php file in your theme. You can find this in the WordPress Dashboard under Appearance → Theme File Editor.

    2. Add the following code snippet:

      add_filter( 'rank_math/researches/toc_plugins', function( $toc_plugins ) {
         $toc_plugins['plugin-directory/plugin-filename.php'] = 'Breakdance TOC';
         return $toc_plugins;
      });

      Make sure to replace plugin-directory/plugin-filename.php with the actual path to your TOC plugin file inside the WordPress plugins folder.

    3. Save the changes.

    Once you’ve added this code, Rank Math should be able to detect that you are using a Table of Contents section in your posts. We recommend adding this code to a child theme to prevent any loss of changes during theme updates.

    For more details, you can refer to our article on Why Isn’t Rank Math Detecting the Table of Contents?.

    Thank you for raising this concern, and we hope this helps resolve the issue!

    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,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Rank Math only detects the Table of Content if it is added with the compatible plugins from this list.

    However, please note that the SEO score is only for your reference and doesn’t affect the actual SEO performance of your site. Since the Table of Contents is already added to your pages, you can ignore the test if you want as search engines test the live version of your site.

    Hope that helps and please don’t hesitate to let us know if you have any other questions.

    Thank 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.

Viewing 2 replies - 1 through 2 (of 2 total)

The ticket ‘Table of contents compability’ is closed to new replies.