Rankmath Table of contents automatically adding spacing after some items in TOC

#914135
  • Resolved Abc
    Rank Math free

    I have two issues. How can I add some space before the title Table of contents which is showing so close to the border of the Table of contents part.
    Let me tell you that I am not getting any dimensions tab to adjust these settings so if you could help me with this.

    Second, how can I remove the space that can be seen in the image which is showing automatically after I publish the post. Similarly it is showing after 4.1.1. Heading.

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    Mainly, the appearance of the TOC block on the frontend depends on your theme styling and theme support.

    If Rank Math’s TOC block doesn’t support such a feature, we can work with CSS to eliminate those spaces. You can share the post/page’s URL here so we can come up with a CSS code or you can try the CSS code below:

    #rank-math-toc nav > ol > li{
        margin-bottom: 0;
        padding-bottom: 0;
    }

    Here’s a guide you can follow to add this custom CSS on your site:
    https://www.wpbeginner.com/plugins/how-to-easily-add-custom-css-to-your-wordpress-site/

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

The ticket ‘Rankmath Table of contents automatically adding spacing after some items in TOC’ is closed to new replies.