Hello,
Thank you for contacting Rank Math.
Table of content works with Gutenberg editor when used with in the content area. You can design your Gutenberg website accordingly accordingly. For ex: divide it into 2 column and use the 2nd column for Table of content. With little CSS you can make the 2nd column sticky.
As far as giving the option for highlighting for active menu, we’ll certainly add this point in the roadmap. You can check our roadmap for more details: https://rankmath.com/roadmap/.
Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.
Thank You.
Hi,
unfortunately I cannot get a sticky sidebar to work. Could you please help me with this so that I can use the ToC block in it? Please see the private data.
Hello,
Normal way of functioning would be the block sticks and once the column has ended, it will scroll as normal. Adding all those lines of CSS codes are beyond the scope of this support.
There are few Gutenberg plugin which can help you in sticking a column or you can go through this YouTube video which shows how it can be done via Gutenberg: https://www.youtube.com/watch?v=hXIbpwxBpC8
Hope this helps.
Thank you
Hi,
thanks, but I don’t want to use anoter plugin just for that…you said with some simple css but that is not working.
So Rank Math should really add the option to use the ToC block in the sidebar as well, since a table of content really only makes sense if it is in a sticky sidebar, otherwise you need to scroll back up all the time to view the table and that is purposeless.
Hello,
At the moment that’s not possible to use the TOC block outside the normal page flow and it can only be added anywhere inside the content, either the top, middle, or bottom.
Having said that, we have an internal list of suggestions to improve this feature and we are going to add this one as well.
Thank you for the feedback.