Title: TOC problem
Last modified: October 24, 2025

---

# TOC problem

 *  Resolved [snecz](https://wordpress.org/support/users/snecz/)
 * (@snecz)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/toc-problem-2/)
 * Hi, I have problem with the table of contents. The block at the beginning of 
   the article says there are no headings. However, the headings are there (Gutenberg),
   they just have the following class added: <h2 class=”heading”> as I can see in
   the page source.

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

 *  Plugin Support [Jeremy](https://wordpress.org/support/users/jeremrm/)
 * (@jeremrm)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/toc-problem-2/#post-18696126)
 * Hello [@snecz](https://wordpress.org/support/users/snecz/),
 * Thank you for your query and we are so sorry about the trouble this must have
   caused.
 * Can you please share a link to the affected post so we can take a closer look
   at the issue?
 * Looking forward to helping you with this one.
 *  Thread Starter [snecz](https://wordpress.org/support/users/snecz/)
 * (@snecz)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/toc-problem-2/#post-18697397)
 * Hi [@jeremrm](https://wordpress.org/support/users/jeremrm/)
 * Here is an example: [https://prodetektyw.pl/osint-bialy-wywiad/](https://prodetektyw.pl/osint-bialy-wywiad/)
 *  Plugin Support [Jaideep Asrani](https://wordpress.org/support/users/jaideeprm/)
 * (@jaideeprm)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/toc-problem-2/#post-18698385)
 * Hello [@snecz](https://wordpress.org/support/users/snecz/),
 * Our plugin’s TOC block only works with the default heading block of the block
   editor. The default heading block contains the “wp-block-heading” class. Since
   your heading blocks don’t have the same class, you must be using a different 
   heading block added by your theme or a plugin, and that’s why our TOC block is
   not able to detect them.
   Please make sure to use the default Heading block of
   block editor to fix the issue.
 * Let us know how that goes. Looking forward to helping you.

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

The topic ‘TOC problem’ is closed to new replies.

 * ![](https://ps.w.org/seo-by-rank-math/assets/icon.svg?rev=3438330)
 * [Rank Math SEO – AI SEO Tools to Dominate SEO Rankings](https://wordpress.org/plugins/seo-by-rank-math/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/seo-by-rank-math/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/seo-by-rank-math/)
 * [Active Topics](https://wordpress.org/support/plugin/seo-by-rank-math/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seo-by-rank-math/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seo-by-rank-math/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Jaideep Asrani](https://wordpress.org/support/users/jaideeprm/)
 * Last activity: [7 months, 1 week ago](https://wordpress.org/support/topic/toc-problem-2/#post-18698385)
 * Status: resolved