TOC not showing in sidebar widget

#691643
  • Resolved Ashish Agarwal
    Rank Math free

    I am using kadence block for my wordpress site with the kadence theme. I am using the TOC by rankmath block just under my article intro. But i want to show it in my sidebar as a sticky block. However when i go to widgets under appereance in my WP dash, and i try to add this TOC block in the sidebar widget, its not getting added. The message in the block says”This block has encountered an error and cannot be previewed”. Nest when i go to my post preview page, its just showing the heading “Table of Content” in the side bar. There is nothing showing under it .

    How do i add this TOC in the sidebar ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    I’m sorry to hear that you’re experiencing issues with adding the Table of Contents (TOC) block by Rank Math to your sidebar using the Kadence theme. It seems like you are encountering an error when trying to add the TOC block to the sidebar widget.

    The TOC block by Rank Math is designed to be added within the content area of your posts and pages. It may not be compatible with adding it directly to the sidebar using the default WordPress widgets.

    However, you can try using a plugin like “Custom HTML Widget” or “Shortcode Widget” to add the TOC block to your sidebar. These plugins allow you to add custom HTML or shortcodes to your sidebar, which may help you display the TOC block as a sticky block in your sidebar.

    If you encounter any issues while trying this method, please feel free to reach out to us, and we’ll be happy to assist you further.

    Thank you for bringing this concern to our attention.

    Sources:
    Why Isn’t Rank Math Detecting the Table of Contents? » Rank Math
    How to Add Rank Math’s Table of Contents Block » Rank Math

    thanks fpr the super quick reply. This TOC block which i will be adding in the sidebar using the plugins you have suggested – will this be the TOC by rankmath only or will this be the TOC provided by those plugins ?
    In that case will i be losing any benefit which i might be getting by using TOC by Rankmath ? Thanks again

    Hello,

    Apologies for the confusion, but there may be some inaccuracies in some parts of the Rankbot replies.

    We haven’t tested the TOC block on the said plugins and, likely, the block will not work as our TOC block is intended to be added individually to a post and a TOC shortcode is not available at the moment.

    With that said, our developer is planning to implement a TOC shortcode soon in our plugin so that might help you with your issue.

    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘TOC not showing in sidebar widget’ is closed to new replies.