• Resolved adityathakur

    (@adityathakur)


    After the latest update, the Table of Content isn’t working. It shows only the empty table. I had to roll back to the previous version because I use TOC in all the posts.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Alexis Pandaan

    (@alexius08)

    Hi @adityathakur! Thanks for letting us know. We’ve been able to identify the cause of the issue and make a fix. We’ll be including it in the next version of the plugin. However, if you need to have the fix in case you need something from the latest version of the plugin0, you can do the following:

    1. Download this file and save it as block.php
    2. Locate the folder for your WordPress plugins and open the folder for Ultimate Blocks
    3. Go to src/blocks/table-of-contents and rename the existing block.php file to something else (just in case something goes wrong)
    4. Paste the file you just downloaded

    Please let us know how it goes.

    I had the same problem, and the updated block.php did restore functionality of the TOC block on my site.

    Hi

    I have a further question on the table of contents.

    I use Autoptimize and when I aggregate the JS files it does not show the content in the TOC.

    It does work if I tick the option (Save aggregated script/CSS as static files?) in autoptimize, but the pagespeed hit is massive if I load the site in that way.

    Ideally I think I would need to exclude the TOC file from autoptimize but unsure which file to exclude for the TOC only – can you help on it?

    The pagespeed dip is so much on mobile (going from 92% to 67%) that I would rather not have the table than take that kind of hit on speed.

    Can this be rectified so I can keep the TOC and have it loading normally?

    Thanks

    Plugin Contributor Alexis Pandaan

    (@alexius08)

    Hi @soopasimon! Autoptimize provides an option to exclude specific files from being processed by it. At Javascript Options > Exclude scripts from Autoptimize, you should see an input box where you can enter the path towards the files and folders you want to exclude. Our Table of Content’s frontend script file is, by default, at wp-contents/plugins/ultimate-blocks/src/blocks/table-of-contents/front.build.js, though it could be different depending on how you set up the plugin files and your WordPress installation.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘TOC Issues after the latest update’ is closed to new replies.