Hi! I have a layout on my site where I would like the table of contents to appear before the first H3 tag. None of the solutions provided in the plugin settings offer this option. I know it can be done manually, but it’s too much work for over 1,000 posts. I’ve tried using a function, but unfortunately, it doesn’t work. Is it possible to automatically place the table of contents in the location I specified, i.e., before the H3 tag? Here is the function:
function custom_insert_toc_before_h3($content) {
if (is_singular() && function_exists('boomdevs_toc')) {
$h3_position = strpos($content, '<h3');
if ($h3_position !== false) {
$before_h3 = substr($content, 0, $h3_position);
$after_h3 = substr($content, $h3_position);
$content = $before_h3 . boomdevs_toc() . $after_h3;
}
}
return $content;
}
add_filter('the_content', 'custom_insert_toc_before_h3');
]]>
i am getting error after updating plugin today. i have to set it inactive.
There has been a critical error on this website.
Log File :
[10-Nov-2024 14:42:35 UTC] PHP Fatal error: Uncaught Error: Access to undeclared static property: Boomdevs_Toc_Settings::$prefix in /home2/zzz/public_html/wp-content/plugins/top-table-of-contents_/includes/class-boomdevs-toc-settings.php:70
Stack trace:
#0 /home2/zzz/public_html/wp-content/plugins/top-table-of-contents/includes/class-boomdevs-toc.php(209): Boomdevs_Toc_Settings->generate_settings()
#1 /home2/zzz/public_html/wp-content/plugins/top-table-of-contents/includes/class-boomdevs-toc.php(98): Boomdevs_Toc->register_settings()
#2 /home2/zzz/public_html/wp-content/plugins/top-table-of-contents/boomdevs-toc.php(126): Boomdevs_Toc->__construct()
#3 /home2/zzz/public_html/wp-includes/class-wp-hook.php(324): run_boomdevs_toc(”)
#4 /home2/zzz/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #5 /home2/zzz/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#6 /home2/zzz/public_html/wp-settings.php(555): do_action(‘plugins_loaded’)
#7 /home2/zey in /home2/zzz/public_html/wp-content/plugins/top-table-of-contents/includes/class-boomdevs-toc-settings.php on line 70
here are the errors generated since WP 6.6.1:
do we expect a fix soon?
PHP Deprecated: Creation of dynamic property CSF_Metabox::$post_formats is deprecated in /var/www/html/wp-content/plugins/top-table-of-contents/libs/codestar-framework/classes/metabox-options.class.php on line 46
PHP Deprecated: Creation of dynamic property CSF_Metabox::$page_templates is deprecated in /var/www/html/wp-content/plugins/top-table-of-contents/libs/codestar-framework/classes/metabox-options.class.php on line 47
PHP Deprecated: Creation of dynamic property WPSE_Custom_Post_Types_Teaser::$allowed_columns is deprecated in /var/www/html/wp-content/plugins/wp-sheet-editor-bulk-spreadsheet-editor-for-posts-and-pages/inc/custom-post-types.php on line 107
Hello,
I have submitted a support request through the form on your official website regarding the TOP WordPress Table Of Contents plugin but have not received a response. Below is the link to the support request I submitted:
Could you please check this and respond at your earliest convenience? I would greatly appreciate your assistance with the issue I’m experiencing.
Thank you in advance for your prompt attention to this matter.
Best regards,
]]>The plugin works fine on the page but on the article there is an error, when clicking on the title in the table of content it cannot move to the correct content.
This is my blog post: https://hanoisignature.homes/tam-son-se-ban-hang-xa-xi-tai-chung-cu-hanoi-signature
This is Video of issue: https://streamable.com/g730c4
]]>I have your plugin installed. Use everything completely normally. But this article alone is encountering an error, which is a problem with automatically generating table of content. It displays at the top of the header. I don’t understand why it is like that? I tried debugging in the code but it encountered the following cause:
Hi,
I’m using the plugin on Flatsome and I’m getting the following error on every blog post:
Deprecated: Required parameter $headings follows optional parameter $topLevel in /home/sites/17b/1/1b9c10c09c/public_html/wp-content/plugins/top-table-of-contents/vendor/caseyamcl/toc/src/MarkupFixer.php on line 68
Deprecated: Required parameter $headings follows optional parameter $topLevel in /home/sites/17b/1/1b9c10c09c/public_html/wp-content/plugins/top-table-of-contents/vendor/caseyamcl/toc/src/TocGenerator.php on line 73
Deprecated: Required parameter $headings follows optional parameter $topLevel in /home/sites/17b/1/1b9c10c09c/public_html/wp-content/plugins/top-table-of-contents/vendor/caseyamcl/toc/src/TocGenerator.php on line 183
Deprecated: Required parameter $headings follows optional parameter $topLevel in /home/sites/17b/1/1b9c10c09c/public_html/wp-content/plugins/top-table-of-contents/vendor/caseyamcl/toc/src/TocGenerator.php on line 211
I’ve posted a link to the blog post. Please let me know what to do to fix this issue.
]]>Can I make the plugin scroll so it shows the heading it is linked to?
At present, it scrolls too far, and so the visitor doesn’t see the heading
]]>There is a conflict with the following plugin:
https://codecanyon.net/item/wp-cost-estimation-payment-forms-builder/7818230
Could you please exclude it from the TOP TOC? It messes with the total price being shown at the end of the form.
Thanks!
]]>Hi, great plugin! It replaces the previous TOC plugin I had, yours is lightweight and stands nicely in a widget on the main sidebar.
Just noticed a bug: when there are so many headers that the widget is taller than the screen height: when you scroll, the widget sticks at the top. And then you cannot see the bottom items.
Is it a WordPress bug ?
]]>I use the following tag:[boomdevs_toc]
It works on one page, but when I try it on another page (POST) it doesn’t show up.
]]>Hi,
Is there any css that would hide the TOC on specific post?
]]>The very first character in every line has cut off the lower left corner. That looks horrible.
Besides, Why are you adding an underline to the links when hovering? It is extremely ugly and it ruins the layout as I do NOT use underline links any where else. And I cant overwrite it off in Custom.css.
I purchased paid version but its not working, actually display is not correct (everything), settings part from admin panel dissapeared.
]]>Hello,
We are using the plugin of Size Charts Plugin at https://www.ads-software.com/plugins/woo-advanced-product-size-chart/
and we set Tab of contents for Posts and products:
At frontend, it will automatically apply Tab of contents to product descriptions, it works fine, and no issue here:
However, the above TOC menu will also show up on the size chart, please check the screenshot:
So, anyway to disable TOC menu on the size chart?
Thanks
Hi there,
The plugin is picking up a h3 element form a custom footer, is there a way to limit the TOC scope or Exclude specific elements?
Thanks in advance for any help you might be able to provide
]]>Hello
I am getting this error when using the plugin in a post type
Uncaught ReferenceError: progress_bar_switcher is not defined
at HTMLDocument. (boomdevs-toc-public.js?ver=1.3.8:170:9)
Thanks
]]>Hi, After the recent update, the table of content is appearing in the Autor’s bio section. Can you please take a look and point me to the right direction to fix it?
Thanks!
]]>Hello,
I’m getting the following error appear at the top of my blog post, how do I fix this?
Warning: A non-numeric value encountered in?/home/customer/www/pethealthguru.com/public_html/wp-content/plugins/top-table-of-contents/includes/class-boomdevs-toc-shortcode.php?on line?72
Thanks
Alex
]]>The plugin has compatibility issues with the table of contents created by the BetterDocs plugin.
Basically it replaces the anchor tags in a BetterDoc post even though the “Docs” post type is not selected from the settings.
Hello,
I’m having an issue with how the sidebar TOC is interacting with the footer. I’ve set the Z-index of the TOC to 0 and the z-index of the footer to 1 so that it lays underneath the footer. However, there is a strange ghosting effect from the slide button where you can still see if faintly under the footer. Any idea how to solve this so that the slide bar doesn’t appear through the footer?
Thanks in advance!
]]>Hello,
I am using the plugin at?https://www.ads-software.com/support/plugin/top-table-of-contents/
But when I test?our post?on structured data, there is TOC schema showing up.
Would you please have a check?
Thanks
]]>Fatal error with PHP 8. I upgraded from 7.4. I removed the plugin for obvious reasons. Here’s the error:
PHP Fatal error: Uncaught TypeError: Unsupported operand types: int + string in /nas/content/live/chainsaw/wp-content/plugins/top-table-of-contents/includes/class-boomdevs-toc-shortcode.php:73\nStack trace:\n#0 /nas/content/live/chainsaw/wp-content/plugins/top-table-of-contents/includes/class-boomdevs-toc-post-type.php(26): Boomdevs_Toc_Shortcode->shortcode_generator('\\n<figure class=...')\n#1 /nas/content/live/chainsaw/wp-includes/class-wp-hook.php(308): Boomdevs_Toc_Post_Type->boomdevs_toc_post_types('\\n<figure class=...')\n#2 /nas/content/live/chainsaw/wp-includes/plugin.php(205): WP_Hook->apply_filters('\\n<figure class=...', Array)\n#3 /nas/content/live/chainsaw/wp-includes/post-template.php(255): apply_filters('the_content', '<!-- wp:image {...')\n#4 /nas/content/live/chainsaw/wp-content/themes/genesis/lib/structure/post.php(486): the_content()\n#5 /nas/content/live/chainsaw/wp-includes/class-wp-hook.php(308): genesis_do_post_content('')\n#6 /nas/content/live/chainsaw/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)\n#7 /nas/content/live/chainsaw/wp-includes/plugin.php(517): WP_Hook->do_action(Array)\n#8 /nas/content/live/chainsaw/wp-content/themes/genesis/lib/structure/loops.php(119): do_action('genesis_entry_c...')\n#9 /nas/content/live/chainsaw/wp-content/themes/genesis/lib/structure/loops.php(38): genesis_standard_loop()\n#10 /nas/content/live/chainsaw/wp-includes/class-wp-hook.php(308): genesis_do_loop('')\n#11 /nas/content/live/chainsaw/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)\n#12 /nas/content/live/chainsaw/wp-includes/plugin.php(517): WP_Hook->do_action(Array)\n#13 /nas/content/live/chainsaw/wp-content/themes/genesis/lib/framework.php(66): do_action('genesis_loop')\n#14 /nas/content/live/chainsaw/wp-content/themes/genesis/single.php(15): genesis()\n#15 /nas/
]]>
Hello
Does it support TOC schema?
thanks
]]>does Pretty Hash encoded URL (like example.com/#what_is_table_of_contents). same as https://www.ads-software.com/plugins/luckywp-table-of-contents/, they have, also support non-English url, ,
i can not find Pretty Hash encoded URL setting page.
thanks
]]>I recieve the below error
Warning: Illegal string offset ‘disable_auto_insert’ in /home/geducom/public_html/wp-content/plugins/top-table-of-contents/includes/class-boomdevs-toc-shortcode.php on line 85
]]>Hi there,
is it possible to use local hosted fonts with Elementor instead of the web fonts offered in the drop down?
And thank you guys for this great plugin!
]]>Even after selecting the word break in the word break setting, on mobile devices, the list items are truncated.
]]>I want to set up the font size using global font variables, or in units other than pixels.
I’m using the following selectors but it doesn’t seem to work:
.bd_toc_content_list_item ul
{
font-size:var(--fs6)!important;
}
I have also tried more specific selectors as well, but it doesn’t work.
]]>Hello the plugin is great. I use a sticky header on my website. When I click on a link in the table of contents, it jumps to the link, but then it is always behind the header and you have to scroll up to get to the right jump marker.
This is only 60px but especially with FAQ it is irritating if you click on question 1 and end up at question 3.
]]>