Problem of “Use Table of Content to break-down your text.”

#61631
  • Resolved Mesut Demiratar
    Rank Math free

    Hi.
    Rank Math SEO Plugin says: “Use Table of Content to break-down your text.”
    I did this task. But the plugin ignores this. When it looks successful it will be 100/100. What is the problem?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi, I have the same question.
    My table of contents looks like this:

    
    <h4>Content:</h4>
    <ul>
    <li><a href="#Brief History" class="rank-math-link">Brief History</a></li>
    <li><a href="#Types of Keyboards" class="rank-math-link">Types of Keyboards</a></li>
    <li><a href="#Purpose" class="rank-math-link">Purpose</a>
    </li>
    <li><a href="#Fun Facts" class="rank-math-link">Fun Facts</a></li>
    <li><a href="#Summary" class="rank-math-link">Summary</a></li>
    <li><a href="#Interesting Articles" class="rank-math-link">Interesting Articles</a></li>
    </ul>
    

    Is this the correct way to create a table of contents or I am missing something?

    Alberto
    Rank Math business

    Hello,

    Thank you for contacting Rank Math today.

    Unfortunately, Rank Math looks for an installable TOC file within the plugins folder and thus won’t be able to detect the TOC file (since you are not using a plugin).

    I would recommend you to install https://wordpress.org/plugins/table-of-contents-plus/ or https://wordpress.org/plugins/easy-table-of-contents/ (plus they will automatically generate it, so you don’t have to do it).

    Looking forward to helping you. Thank you.

    Hello. Thanks for your answer.

    I use the plugin “GutenTOC – Table of Content Gutenberg Block”. Can’t this be seen?

    Hello,

    Thank you for the reply, Alberto!

    I do not care if the plugin is detecting it, I just want to be sure that the way I am doing it is right. Is it correct? Do I have to add some special attributes for Google to know that this is my table of content?

    Best!

    Alberto
    Rank Math business

    Hello,


    @culinaryinspiration
    , meanwhile it is not directly supported by Rank Math (there are a lot of TOC plugins so for now we just detect by default some of them), I have coded a small piece of code to enable that plugin to be integrated with Rank Math.

    You just need to paste this code at the end of your functions.php file in your current theme:

    /**
     * Filter to make GutenTOC plugin compatible with Rank Math
     *
     * @param array TOC plugins.
     */
    add_filter( 'rank_math/researches/toc_plugins', function( $toc_plugins ) {
           $toc_plugins['gutentoc-advance-table-of-content/gutentoc.php'] = 'GutenTOC - Table of Content Gutenberg Block';
        return $toc_plugins;
    });


    @mesutdemiratar1
    , you can check this tutorial to make a valid table of contents with just HTML and CSS: https://www.tipsandtricks-hq.com/simple-table-of-contents-toc-using-pure-html-and-css-code-9217

    Looking forward to help you.

    • This reply was modified 4 years, 3 months ago by Alberto.

    The problem is not solved: https://i.hizliresim.com/AZLSL9.png

    Look; I first used the “GutenTOC – Table of Content Gutenberg Block” plugin. Secondly, I used the HTML system.

    However, the Rank Math plugin did not see and score the Table of Contents.

    Hello,

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

    ​​​​​​​
    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Alberto
    Rank Math business

    Hello,

    We don’t see any login credentials in the Sensitive Data section, could you check it?

    Looking forward to help you.

    Hello,

    Thank you for contacting Rank Math today.

    The sensitive data provided are only screenshots of your issue.

    We only detect Table of Contents if you are using one of these plugins to add a table of contents section.

    ​https://rankmath.com/kb/score-100-in-tests/#table-of-contents
    ​
    ​Unfortunately, there is no other way to look for a Table of Contents section other than to look for pre-installed ToC plugins like the ones listed above. You also use the filter provided in the above link to manually add your plugin to the compatibility list (or ask your ToC plugin provided to add it to their plugin)
    ​
    You can also use this code in your theme’s functions.php file to manually tell Rank Math that you are already using a Table of Contents and to pass that test.

    ​https://pastebin.com/RUdAkgMm
    ​
    ​Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hi.

    Can you make this plugin work:https://wordpress.org/plugins/gutentoc-advance-table-of-content/

    I used this plugin before. But Rank did not see this plugin.

    Hello,

    Thank you for the follow up

    The following is the function my colleague had tried to modify for your plugin.
    Please consult your dev team to help you get the correct directory and PHP file.

    /**
     * Filter to add plugins to the TOC list.
     *
     * @param array TOC plugins.
     */
    add_filter( 'rank_math/researches/toc_plugins', function( $toc_plugins ) {
           $toc_plugins['plugin-directory/plugin-filename.php'] = 'Plugin Name';
        return $toc_plugins;
    });

    Looking forward to helping you. 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 12 replies - 1 through 12 (of 12 total)

The ticket ‘Problem of “Use Table of Content to break-down your text.”’ is closed to new replies.