table of content not detected

#88408
  • Resolved gadget freakz
    Rank Math free

    I have added into my functions.php
    /**
    * Filter to add plugins to the TOC list.
    *
    * @param array TOC plugins.
    */
    add_filter( ‘rank_math/researches/toc_plugins’, function( $toc_plugins ) {
    $toc_plugins[‘table-of-contents-plustoc.php’] = ‘Table of Contents Plus’;
    return $toc_plugins;
    });

    But I still got the warning:
    Use the Table of Contents to break down your text.

    Do I something wrong or have I forgot something? of is it not campatible with each other?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Alberto
    Rank Math business

    Hello,

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

    I think 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.

    Entered the sensitive data. Hope you can find what’s wrong.

    Hello,

    I tried to update your theme functions.php but it seems to fail and require that I upload the file via FTP.

    Assuming your TOC plugin directory is: table-of-contents-plus , please change your filter to be as follows:

    
    /**
     * Filter to add plugins to the TOC list.
     *
     * @param array TOC plugins.
     */
    add_filter( 'rank_math/researches/toc_plugins', function( $toc_plugins ) {
           $toc_plugins['table-of-contents-plus/toc.php'] = 'Table of Contents Plus';
        return $toc_plugins;
    });
    

    Looking forward to helping you. Thank you.

    ​​​​​​

    It worked. first sight i saw now differences. but an compare with notepad++ shows that the ‘ quotes were different! very nice! thanks for support. I will definitely buy the pro version when it came out!

    Alberto
    Rank Math business

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

    I’m using Joili table of content plugin, how do i make rankmath discover that i’m using a plugin?

    Hello,

    Please use this code in your theme’s functions.php file to make Rank Math read your Joli tables of content plugin:

    /**
     * Filter to add plugins to the TOC list.
     *
     * @param array TOC plugins.
     */
    add_filter( 'rank_math/researches/toc_plugins', function( $toc_plugins ) {
           $toc_plugins['joli-table-of-contents/joli-table-of-contents.php'] = 'Joli Table of Contents';
        return $toc_plugins;
    });
Viewing 8 replies - 1 through 8 (of 8 total)

The ticket ‘table of content not detected’ is closed to new replies.