Skip Navigation

[Resolved] Table-of-content block in Toolset content template

This support ticket is created 4 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 6 replies, has 2 voices.

Last updated by valterB 4 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#1691489

I am redesigning my site hejaolika.se using Kadence theme and Toolset. I am trying to use table-of-content blocks (from Ultimate Blocks) in the content template for posts. The headings in the post body should show up in the table of content block, but they don't.
Could there be a problem combining content templates and the table of content block?

I am testing this on 200624.hejaolika.se which is still offline for development.

Do you have any suggestions regarding making this work?
Any other table-of-content block that is recommended to use with Toolset?

Info on Ultimate blocks: https://wordpress.org/plugins/ultimate-blocks
and on the table of contents block: hidden link

#1691955

From Ultimate Blocks I have had this comment:
Toolset's Fields and Text block uses a different structure for headings, which is unfortunately incompatible with the Table of Contents block. Recreating the headings using the default heading block outside the Fields and Text block is the easiest way to fix this.

It seems Ultimate Blocks table of content does not work for me.

Could it be done with Toolset itself or another plugin?

#1692063

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Valter,

Thank you for getting in touch.

Not sure why you mean by the Toolset plugins use different structures for headings.

I'm not sure how the Ultimate blocks table works and how it generates the Tables. Are you able to provide access to the website ?

If you do this with only Toolset it will take some HTML and CSS knowledge to achieve so I would like identify exactly why the block doesn't work.

Thanks,
Shane

#1692959

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Valter,

I took a look at this for you.

From what I see it seems there needs to be an improvement done on the Table of Contents block because when I added the Heading block and a Kadence heading block, they both generate an H2 tag with the heading on the frontend with similar markup.

You mentioned "Toolset's Fields and Text block uses a different structure for headings," however when I checked the markup it is exactly the same with the only difference being the class names and ID's.

I would suggest getting in touch with the support team for this and have them take a look at it as they would be better equipped to tell you why its not showing up.

If its something on our side then I would be more than happy to escalate to our compatibility team but we would first need to ensure that the issue is on our side.

Thanks,
Shane

#1699677

Thanks for your help.

You were right, the problem is with the table of content block.
I received this info from Ultimate blocks: Only default Heading block and some third party Heading blocks are supported for the Table of Contents. We will look into it and see if we can integrate Toolset heading blocks too.

I will try some other plugin for this.
Please let me know if there is any such plugin you would recommend to use with Toolset.

/Valter

#1701575

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2020-07-10 at 7.21.26 AM.png

Hi Valter,

Happy to see that they are willing to look into the issue.

I managed to give a short test to this plugin below and it works.
https://wordpress.org/plugins/luckywp-table-of-contents/

It may not be as pretty as the plugin you are currently using but it automatically picks up the post titles. See Screenshot

So from what I see it can make a suitable substitute.

Thanks,
Shane

#1704865

My issue is resolved now. Thank you!