TAble of content is not detect with the theme avada

#505516
  • Resolved GOO Formation
    Rank Math free

    Hello,

    Table of content is not detect with the theme avada ? how I can fix it ? I prefer to not use other plugin.

    Regards

Viewing 1 replies (of 1 total)
  • 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 our list.

    However, you can add the following piece of code to your theme’s functions.php file to disable the TOC test from Rank Math:

    /**
     * Filter to disable the table of contents test
     */
    add_filter( 'rank_math/researches/tests', function( $tests, $type ) {
        unset(
            $tests['contentHasTOC'],
        );
        return $tests;
    }, 10, 2 );
    

    The filter should be added to your active theme’s functions.php file. Here’s another way to apply the filter using the rankmath.php file:
    https://rankmath.com/kb/filters-hooks-api-developer/#adding-filters-and-hooks-in-rank-math-php

    Please note that these tests are only there for your reference to help you in optimizing your pages/post content. If you feel any of them doesn’t apply to your page, please feel free to ignore them.

    Hope that helps. 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 1 replies (of 1 total)

The ticket ‘TAble of content is not detect with the theme avada’ is closed to new replies.