• Resolved jaypostones

    (@jaypostones)


    Hi

    I’m currently in the process of building my website. I’ve been using SimpleTOC to create a table of contents at the top of each ‘lesson’ page. All was working fine until an update about 30 minutes ago. Now, the TOC either displays only the first heading on the page or ‘No headings found. Save or update post first.’

    It’s set up to pick up all headings, through to H6. I’ve tried changing the heading level but it makes no difference.

    I’ve tried deleting and re-adding headings from scratch, which didn’t work.

    Any assistance would be greatly received.

    Thanks
    Jamie

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Marc Tönsing

    (@marcdk)

    Did you save your post? I need an url with the problem and a copy of the blocks. Paste it here with “code” around it. It will look like this:

    <!-- wp:simpletoc/toc {"use_ol":true,"max_level":4,"className":"warning"} /-->
    
    <!-- wp:heading {"level":4} -->
    <h4>H4.sfdsdfsdf</h4>
    <!-- /wp:heading -->
    
    <!-- wp:heading {"level":3} -->
    <h3>H3.sfdsdfsdf</h3>
    <!-- /wp:heading -->
    
    <!-- wp:heading {"className":"simpletoc-hidden"} -->
    <h2 class="simpletoc-hidden">h2.hidden Ich bin neu und versteckt!</h2>
    <!-- /wp:heading -->
    
    <!-- wp:heading {"level":3} -->
    <h3>H3.sfdsdfsdf</h3>
    <!-- /wp:heading -->
    
    <!-- wp:heading {"level":3} -->
    <h3>H3.sfdsdfsdf</h3>
    <!-- /wp:heading -->
    
    <!-- wp:heading -->
    <h2>H2.sfdsdfsdf</h2>
    <!-- /wp:heading -->
    
    <!-- wp:heading -->
    <h2>Wahre Größe wen/oder nicht</h2>
    <!-- /wp:heading -->
    
    <!-- wp:heading -->
    <h2>バウムクーヘン</h2>
    <!-- /wp:heading -->
    
    <!-- wp:heading -->
    <h2>Olé Garçon! Diese Süßspeise schmeckt gar nicht übel! *börp*</h2>
    <!-- /wp:heading -->
    
    <!-- wp:heading {"level":3,"className":"simpletoc-hidden"} -->
    <h3 class="simpletoc-hidden">I have simpletoc-hidden as class</h3>
    <!-- /wp:heading -->
    
    <!-- wp:simpletoc/toc {"use_ol":true} /-->
    
    <!-- wp:heading -->
    <h2>من یک عنوان هستم</h2>
    <!-- /wp:heading -->
    
    <!-- wp:list -->
    <ul><li>Testliste</li><li>Testlist</li></ul>
    <!-- /wp:list -->
    
    <!-- wp:heading -->
    <h2>C<em>'est très chic</em> sasLa cédille</h2>
    <!-- /wp:heading -->
    
    <!-- wp:more -->
    <!--more-->
    <!-- /wp:more -->
    
    <!-- wp:paragraph {"className":"warning"} -->
    <p class="warning">Warning!!!! <a href="http://marc.tv">Link</a></p>
    <!-- /wp:paragraph -->
    
    <!-- wp:paragraph {"className":"notice"} -->
    <p class="notice">Notice! <a href="http://marc.tv">Link</a></p>
    <!-- /wp:paragraph -->
    
    <!-- wp:heading {"level":3,"align":"full","className":"relevanteE"} -->
    <h3 class="alignfull relevanteE" id="customid"><strong>Relevante </strong><em>Entscheidungen</em> mit Klasse 5</h3>
    <!-- /wp:heading -->
    
    <!-- wp:heading -->
    <h2>Mein&nbsp;persönlicher&nbsp;Kinofilm encoding</h2>
    <!-- /wp:heading -->
    
    <!-- wp:heading -->
    <h2><a href="http://marc.tv">10 Stunden voller relevanter & spannender Entscheidungen…</a></h2>
    <!-- /wp:heading -->
    
    <!-- wp:heading {"level":4} -->
    <h4>Pro-Tipp für noch mehr Spaß!!!</h4>
    <!-- /wp:heading -->
    
    <!-- wp:heading {"level":3} -->
    <h3>3 Ordnung</h3>
    <!-- /wp:heading -->
    
    <!-- wp:heading {"level":4} -->
    <h4>4. Ordnung</h4>
    <!-- /wp:heading -->
    
    <!-- wp:heading -->
    <h2>2. Ordnung</h2>
    <!-- /wp:heading -->
    
    <!-- wp:heading -->
    <h2>Die beste Grafik auf der PlayStation 4 Pro </h2>
    <!-- /wp:heading -->

    Or contact me directly via [email protected] for a short zoom call.

    Thread Starter jaypostones

    (@jaypostones)

    Hi Marc

    Thanks for the reply. The issue is site-wide – every page I’ve created that has a toc. Most pages are behind a membership wall so I’ve made this test page, which has the same issue: https://jaypostones-drumlessons.com/toc-test/

    Here’s the code from the test page:

    <!-- wp:simpletoc/toc {"no_title":true} /-->
    
    <!-- wp:heading {"textAlign":"center"} -->
    <h2 class="has-text-align-center"><strong>heading example</strong></h2>
    <!-- /wp:heading -->
    
    <!-- wp:paragraph -->
    <p>dqwiduhqwdu hqwdu hqwduhqwduh qWDH </p>
    <!-- /wp:paragraph -->
    
    <!-- wp:paragraph -->
    <p>qwd oqhwd iouwd iuhqwd iuhqwd </p>
    <!-- /wp:paragraph -->
    
    <!-- wp:heading {"textAlign":"center"} -->
    <h2 class="has-text-align-center"><strong>another heading</strong></h2>
    <!-- /wp:heading -->
    
    <!-- wp:paragraph -->
    <p></p>
    <!-- /wp:paragraph -->
    Plugin Author Marc Tönsing

    (@marcdk)

    I can reproduce the problem. That is good. I will see if I understand why this happens.

    Plugin Author Marc Tönsing

    (@marcdk)

    Fix is on the way.

    Thread Starter jaypostones

    (@jaypostones)

    Ah that’s great! Thanks Marc!

    Plugin Author Marc Tönsing

    (@marcdk)

    Please update to 4.4.5 I hope this fixes all your problem. See changelogs for explanation. Short: I was naive. 😉 Happy website launch in 4 hours 15 minutes.

    Plugin Author Marc Tönsing

    (@marcdk)

    problem resolved until proven otherwise.

    Thread Starter jaypostones

    (@jaypostones)

    Can confirm – all seems to be working!

    Thanks for the speedy assistance with this. It’s much appreciated!

    Plugin Author Marc Tönsing

    (@marcdk)

    You are welcome. A review would be great. Thank you for reporting this with an example!

    • This reply was modified 5 years, 3 months ago by Marc Tönsing.
Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘SimpleTOC not working after update’ is closed to new replies.