Rank Math does not recognize Elementor table of contents

#26022
  • Resolved Troy
    Rank Math free

    When using the latest TOC from Elementor (New Elementor feature added on 2019-12-18), Rank Math’s Content Readability section shows “You don’t seem to be using a Table of Contents plugin.” even though I am and the TOC displays.

    Is there an update or function that can be added to correct this?

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

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

    I have submitted this problem to our dev team and hopefully it will be addressed in the next update.
    As a temporary workaround, I can suggest that you disable this test and add the score to another test using the following code on your theme’s functions.php file:

    /**
     * Rank Math snippet to disable 'titleHasNumber' & 'contentHasTOC' tests.
     *
     * @param array  $tests Array of tests with score
     * @param string $type  Object type. Can be post, user or term.
     */
    add_filter( 'rank_math/researches/tests', function( $tests, $type ) {
    	
    	unset($tests['content-readability']['contentHasTOC']);
    
    	$tests['basic']['keywordInMetaDescription']['score'] = 4;
    
        return $tests;
    }, 10, 2 );

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Troy
    Rank Math free

    Perfect! This worked great. Thank you for the SUPER FAST response!

    Todd
    Rank Math free

    Hello Troy,

    I wanted to add that we are working on a major update for the Elementor plugin and it is going to make your SEO with Elementor so much easier.

    You can check the beta here:

    https://www.facebook.com/groups/rankmathseopluginwordpress/permalink/519236895615308/

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

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

The ticket ‘Rank Math does not recognize Elementor table of contents’ is closed to new replies.