The class does not add to the block’s HTML element on the frontend.
Plugin Support
Mahdi
(@iammahdi)
Hi @alvandwp,
Thank you for the kind words and for using our plugin!
You are observing correctly—the HTML structure and CSS classes for the Table of Contents block were updated in version 4.9.0.
This wasn’t a bug, but rather a complete revamp we call Table of Contents Block 2.0. To support new requested features—specifically the ability to have multiple ToCs on a single page and the new accordion (collapse/expand) functionality—we had to refactor the underlying HTML structure on the frontend.
As a result, the old wp-block-aioseo-table-of-contents class is no longer used in the frontend output. The new structure you are seeing is the correct, intended behavior for this version.
If you have custom CSS targeting the old class, you will need to update your selectors to target the new classes generated by the 2.0 block.
You can read more about this major update in our changelog here: https://aioseo.com/changelog/
I hope this clarifies the change!
Let us know if you have any other questions.