Home Forums WoodMart support forum Issue with table of contents widget on page terms of services

Issue with table of contents widget on page terms of services

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #692266

    support-1088
    Participant

    Hello we are facing problem in one of our internal pages . Specically on the page ” Όροι Χρήσης” with url: https://shop.futureplus.gr/terms-conditions/

    We have cretaed on top of the page in elementor we have placed the widget “table of contents”, we have placed h1, h2,h3 tags in our content. But for some reason on top of the tabe appear two options that are not valid and do not have either h1, h2 or h3 tags . We have uploaded a screenshot and pointed out the two wrong entries in the table.

    Can you assist us?

    Thank you

    Attachments:
    You must be logged in to view attached files.
    #692338

    Hello,

    Sorry to hear about the inconvenience. Kindly, please share your Site WP-ADMIN Login details in the Private Content field so that we can check this concern on your Site and help you out accordingly.

    Best Regards,

    #692376

    support-1088
    Participant

    Sending more info

    #692488

    Hello,

    Could you please check how it works with some default WordPress themes like WooCommerce Storefront or Twenty-Twenty-Five to understand if it is our theme issue or not?

    Best Regards,

    #692529

    support-1088
    Participant

    Hello, it seems like the widget doesn’t work for Twenty-Twenty-Five.

    #692603

    Hello,

    The unwanted TOC entries are generated because the long paragraph before your <h3> heading contains several service names like “Υπηρεσία Εγκατάστασης & Ενημέρωσης Advanced Builder (1 έτος)”.

    The Table of Contents widget sometimes scans text blocks that include<strong> or inline elements and incorrectly interprets them as headings, especially when they contain Greek characters and parentheses.

    To fix this:

    • Wrap the paragraph inside a separate container and in the TOC widget settings, enable “Container” and exclude that section by CSS selector (for example: .exclude-toc).
    • Or simply add the class exclude-toc to that text block in Elementor > Advanced > CSS Classes, then go to TOC widget > Exclude by Selector → add .exclude-toc.
    • Update the page and regenerate the TOC.

    After excluding that paragraph, only valid <h3> and other real heading tags will appear in the Table of Contents.
    https://postimg.cc/vDk5BwRB

    Best Regards,

    #693043

    support-1088
    Participant

    Hello and thanks for your reply.
    However, it seems like it reads the extra texts for the menu, and not from the paragraph, because now it generated more, as shown in screenshot. Is there any way to fix this?
    Thank you.

    Attachments:
    You must be logged in to view attached files.
    #693046

    support-1088
    Participant

    Managed to exclude the menu by css selector, and it worked. Thank you, we can close the ticket now.

    #693082

    Hello,

    That’s great to hear!

    I’m glad you managed to resolve the issue successfully. If you need any further assistance or have other questions in the future, feel free to open a new topic — we’ll be happy to help.

    Have a wonderful day!

    Topic Closed.
    Best Regards,

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Issue with table of contents widget on page terms of services’ is closed to new replies.