After customizing the look of the Table of Contents, when I click on the headings in the ToC of a blog post, it doesn’t jump to the section/achor point. The URL address does change to the correct anchor, for example: when I click on “Third Heading” in the ToC, the URL changes to https://example.com/blog/post1/#third-heading
but it doesn’t jump down the page. It’s not working on the Desktop (Firefox) nor on the phone. How can I fix it? Thanks a lot in advance!
My wordpress ver. is 6.6.1, theme is OnyxPulse ver. 1.0.2, php ver. 8.2.16.
]]>I get a warning, then an fatal error on the page where I use the Table of Contacts Block.
Both the plugin (1.4.1) and WP (6.5.2) should be the latest versions.
This has worked fine before (can’t give a “last confirmed with version xxx”, because it have been updated a couple of times since I checked that page last).
The page works fine if I disable the plugin.
Warning: DOMXPath::query(): Invalid expression in /home/h[...].se/wp-content/plugins/table-of-contents-block/includes/helpers.php on line 225
Fatal error: Uncaught TypeError: Argument 1 passed to iterator_to_array() must implement interface Traversable, bool given in /home/h[...].se/wp-content/plugins/table-of-contents-block/includes/helpers.php:225
Stack trace: #0 /home/h[...].se/wp-content/plugins/table-of-contents-block/includes/helpers.php(225): iterator_to_array(false)
#1 /home/h[...].se/wp-content/plugins/table-of-contents-block/table-of-contents-block.php(182): TOC_Helper::getHeadersFromContent(Array, '\n<div class="wp...')
#2 /home/h[...].se/wp-includes/class-wp-block.php(463): {closure}(Array, '\n<div class="wp...', Object(WP_Block))
#3 /home/h[...].se/wp-includes/blocks.php(1705): WP_Block->render()
#4 /home/h[...].se/wp-includes/blocks.php(1743): render_block(Array)
#5 /home/h[...].se/wp-includes/class-wp-hook.php(324): do_blocks('<!-- wp:table-o...')
#6 /home/h[...].se/wp-includes/plugin.php(205): WP in /home/h[...].se/wp-content/plugins/table-of-contents-block/includes/helpers.php on line 225
]]>
Hi, thank you for this great puglin. So far it was perfect, but since last worpdress update, the plugin does not work for new posts.
It says “Your site does not support the “Table Of Contents” block. You can try installing it or removing it completely.”
When I try to (re)install it, it says there is a error.
Do you plan to fix this issue so your plugin will still be compatible with wordpress last version ?
Thank you,
Seb
]]>Hi,
When using your plugin, I encountered an error in the backend while trying to access the style tab.
Thanks!
Hello, is there a way to add the navigation (previous/next post) and the comments section to the table of contents?
Thanks!
]]>Hello, first of all, thanks for the plugin, it works really well.
I do have a question regarding scrolling to elements in the toc. When I click on a link in the toc then the page scrolls so that the heading I clicked is at the top of the page. However, I have a sticky header of a certain height (say 50px). That header overlaps the content that’s shown at the top of the page. So when the toc scrolls the content to a particular heading then the actual heading is not visible because it’s covered by the header. That doesn’t look so good.
Is there already a way to deal with that situation? Otherwise would it be possible to add one? E.g. by providing a scroll-offset option (or something else).
Thanks!
]]>NEED BASE PLUGIN Contact Form 7 https://it.www.ads-software.com/plugins/contact-form-7/
PLUGIN ERROR: CF7 Smart Grid Design Extension
https://it.www.ads-software.com/plugins/cf7-grid-layout/
When open a New (or Old Module) contact form 7 (open here: SITE/wp-admin/edit.php?post_type=wpcf7_contact_form)
Do critical error:
]]>Fatal error: Uncaught Error: array_merge(): Argument #1 must be of type array, null given in SITE/wp-content/plugins/table-of-contents-block/includes/helpers.php on line 53 Call stack:
array_merge()
wp-content/plugins/table-of-contents-block/includes/helpers.php:53TOC_Helper::enqueues()
wp-includes/class-wp-hook.php:324WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:348WP_Hook::do_action()
wp-includes/plugin.php:517do_action()
wp-content/plugins/cf7-grid-layout/admin/class-cf7-grid-layout-admin.php:109Cf7_Grid_Layout_Admin::popular_extentions_scripts()
wp-includes/class-wp-hook.php:322WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:348WP_Hook::do_action()
wp-includes/plugin.php:517do_action()
wp-admin/admin-header.php:118require_once()
wp-admin/edit-form-advanced.php:425require()
wp-admin/post-new.php:75 Query Monitor
Hi,
Left and right padding is pushing out the TOC content container instead of pushing the content in.
This happens at both content padding and advanced area padding.
Please advise.
Thanks!
]]>I selected the option in my blog posts but the scroll to top is showing up on my entire website. Not sure how to get rid of it. Please advise.
Parm
]]>I am having problems with the Oda theme entering?a?table of content from the Single Template so that is visible in every post like this example.
Post ulr – https://mondosol.com/can-you-still-buy-a-house-for-1-euro-in-italy/
Based?on?the response from the developer I should insert the Table of contents block directly?on?posts and pages. I tested the block plugin in one post and it works perfectly.
Post ulr – https://mondosol.com/tatiana-james
Plugin name – https://www.ads-software.com/plugins/table-of-contents-block/
Screenshot – https://clip2net.com/s/4iSeQEb
Since I am using?a?third-party plugin that is not part of?Ona?theme, Deothemes and WordPress can’t help me futher and I should continue discussion with the plugin developer instead.
]]>Great app! Just what I needed!
Except, how do I change the default colors of the TOC? I keep having to change them out of the defaults because they don’t work with my theme.
Thanks!
]]>Hi
I’ve been using the Table of Content plugin successfully for the past 9 months. However, today it has failed. I have recently upgraded my hosting with Pressable to PHP version 8.0 and wonder if this has anything to do with it failing. I have asked Pressable and they told me to contact you!
It’s failed on all my posts on my website ??
Thanks
A
I have set a light background color in the title and background tabs. I have set a radius in the Advance tab > Border & Shadow.
The backgrounds ignore the radius. If the radius is set any higher than 3 or 4, the square corner of the background overlays the radius, causing the appearance of a gap in the radius curve.
How can I set the background color to obey the radius settings?
]]>I like this plugin, but wondered how I would change the side of the screen the button appears on please. The table of contents button is on the left to show the list of contents, but need it on right hand side please.
Any ideas?
Thanks
]]>Hi there,
Since the last update, all the TOCs that I’ve created using this plugin seemed to have stopped functioning.
In the gutenberg editor, an error message is now appearing: “This block contains unexpected or invalid content.”
All the anchor links have stopped functioning.
Is this a known issue?
]]>this table of contents does not link to sections that its heading starts with a number.
if contents (headings) starts with number like 1. Ethiopia or 1)Ethiopia or 1Ethiopia it’s not links to that section, but it lists on the table of contents.
Just a small improvement, especially for non-english websites: Why not make the title “Table of Contents” editable through the block settings? Thanks for considering this.
]]>Hi,
I noticed a few days after installing this plug-in that a Scroll to Top button appeared on all my pages. The button is uncustomizable and off-brand, I have no idea how to get rid of it.
Please help!
Parm
]]>Doesn’t work, No docs? I have two columns, TOC in one and H4 + paragraphs in another.
]]>