Table of Contents has  appended to it

#836300
Viewing 11 replies - 1 through 11 (of 11 total)
  • Hello,

    To remove the "" from your table of contents in Rank Math, you can follow these steps:

    1. Check Table of Contents Plugin: Ensure you are using a compatible plugin for the table of contents. If not, consider using one of the recommended plugins mentioned in our documentation.

    2. Add Filter: If you are using a custom method to add the table of contents, you can disable the test for the table of contents by adding a filter to your theme’s rank-math.php file. Here is the code snippet to disable the test:

    add_filter( 'rank_math/researches/tests', function( $tests, $type ) {
        unset(
            $tests['contentHasTOC'],
        );
        return $tests;
    }, 10, 2 );
    1. Contact Plugin Provider: If you are using a different plugin for the table of contents, you can ask the plugin provider to add the necessary filter to make it compatible with Rank Math.

    If you need further assistance, please feel free to reach out to our support team directly from here. We are here to help!

    Thank you for reaching out and addressing this issue.

    Sources:
    How to Use a Table of Contents to Improve Content Readability » Rank Math
    Why Isn’t Rank Math Detecting the Table of Contents? » Rank Math

    I am using Table of Contents by Rank Math plugin which is why I am reaching out. Can you help?

    Hello,

    The table of contents heading only copies the IDs of the headings added to your content, and the are indeed present there

    heading

    In this case, you should get in touch with your theme provider to remove those from every ID heading of your content as Rank Math uses it to show on the Table of Contents block.

    Looking forward to helping you.

    When I switch themes, I get the same issue. Isnt this evidence that that it is rank math plugin that is the problem?

    Hello,

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

    Please do take a complete backup of your website before sharing the information with us.
    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.

    I have backed up my website and have installed the plugin mentioned in your response. Please provide me an email address so that I can create your temporary account

    Hello,

    You can use s******@r*********** email address and put any First and Lastname.

    Once done, please add the login details in the sensitive data section.

    Looking forward to helping you.

    Hello,

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

    Thank you.

    Hello,

    Our plugin is showing that data because that’s what the WordPress database has for the headings as you can see from the level 1 heading on the page which has the following markup on the database:

    
    <!-- wp:heading {"level":1} -->
    <h1 class="wp-block-heading" id="-how-to-configure-a-cisco-asa-5505"><a id="post-25375-_sxqrjyx5ndrv"></a><strong>How To Configure A Cisco ASA 5505</strong></h1>
    

    This usually happens when you copy the text from a Word document or other place and it imports hidden characters which in this case is an object replacement character.

    One way to get rid of this is to delete the text entirely and rewrite it from scratch without copying it from other sources.

    Since our TOC block takes the data from the database it sees this same character and adds it to the TOC entries where it exists.

    Don’t hesitate to get in touch if you have any other questions.

    Thanks so much!

    Hello,

    We are glad we could address your concern.

    Please feel free to create a new forum topic if you do have another question in the future.

    It will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘Table of Contents has  appended to it’ is closed to new replies.