table of content

#558196
  • Resolved Anonymous
    Rank Math free

    I get the message in rank math that I am not using a table of content.
    I do use a table of content , from happy addons but am penalized for it by rank math, can I deactivate this option

Viewing 1 replies (of 1 total)
  • Hello,

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

    You can use this filter to deactivate the ToC test.

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

    Here is how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps. Let us know if you need any other assistance.

    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 closed to new replies.