Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1347488

    Hi guys!

    Hope you are doing great. This is an improvement suggestion.

    When creating a Table of Content Widget, the Widget Title is an H3. Therefore, if you only choose to display the H2s, there is no problem. But if you choose to display the H3s, the Widget Title is included on the Table of Content list.

    It would be great if you could somehow make sure the Widget Title that contains the TOC would not be included on the Table of Contents itself.

    Thank you,

    Havi

    #1347752

    Hey havi,
    Thank you for your suggestion, but I don’t seem to be able to reproduce this.
    I tested on a Classic Editor and Advanced Layout Builder post with H3 headings and the TOC doesn’t include it’s own heading:
    2022-04-08_005.jpg
    I included links to my test posts below, using v4.9.2.1 with only WooCommerce as a plugin.

    Best regards,
    Mike

    #1347756

    Hi Mike!

    Try it on the Block Editor inside of a Blog Post. That’s where I noticed it.

    (And I usually don’t choose to show the H3s but more complex articles, sometimes call for it)

    Best regards,

    Havi

    #1347759

    Hi,
    I tried using the block editor for the post but the TOC still didn’t show it’s H3 title, is your TOC in the sidebar?
    I don’t see a way to add a widget in the block editor on a post.
    If I create a Advanced Layout Builder post and use H3 headings and add a widget element instead for using a sidebar the TOC does show it’s title:
    2022-04-08_009.jpg
    2022-04-08_010.jpg
    Is this what you did?

    Best regards,
    Mike

    #1347762

    Hi Mike!

    No. But that’s interesting.

    Here’s how I do it:

    I create a Widget on the WordPress Admin with the TOC selecting both H2 and H3.

    Then on the Block editor I add a Shortccode Block, and inside I add the Enfold Shortcode [av_sidebar widget_area='TOCWidget' av_uid='av-h6k48'] I sent you a link to how it looks with H2s only in the Private content.

    But if you change the WordPress Widget to select H3s, it will pick up the Widget Title.

    And yes, the Block Editor has useless dual background blocks but no way to add a WordPress Widget. I wish I would have stayed with the Classic Editor for this site but I decided to go with the flow.

    Best regards,

    Havi

    #1347780

    Hi,
    Thanks for the feedback, I was able to reproduce this following your description and I was able to solve it by using the Exclude headlines by class field which the Dev Team included in the widget:
    2022-04-09_001.jpg
    By using the widget title class widgettitle it is excluded from the TOC, I would recommend this for your case rather than limiting the function for all users.
    I hope that you find using the Exclude headlines by class field a good solution for your project.

    Best regards,
    Mike

    #1347807

    Hi Mike,

    So, this class already exist in the theme? All I have to do is add it to the Widget?

    Wow! Never mind! It worked like a charm! Thank you so much!!! Maybe this can also help others in my same situation. :) It is a very easy way to address it.

    Best regards,

    Havi

    • This reply was modified 2 years, 8 months ago by havi.
    #1347813

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Table of Content Widget and H3’ is closed to new replies.