Block: Table of Contents Markup not correct
-
Instead of one
<ul>
list with nested for the different heading levels, it’s just one<li>
per<ul>
and one heading doesn’t even have a<ul>
around it.<div class="uagb-toc__list-wrap" data-headers="[{"tag":1,"text":"H1 Heading","link":"h1-heading","content":"H1 Heading","level":0},{"tag":2,"text":"H2 Heading","link":"h2-heading","content":"H2 Heading","level":1},{"tag":3,"text":"H3 Heading","link":"h3-heading","content":"H3 Heading","level":2},{"tag":4,"text":"H4 Heading","link":"h4-heading","content":"H4 Heading","level":3},{"tag":5,"text":"H5 Heading","link":"h5-heading","content":"H5 Heading","level":4},{"tag":6,"text":"H6 Heading","link":"h6-heading","content":"H6 Heading","level":5},{"tag":3,"text":"Accordion","link":"accordion","content":"Accordion","level":2},{"tag":5,"text":"This is a Short code Table Headers are not available","link":"this-is-a-short-code-table-headers-are-not-available","content":"This is a Short code Table Headers are not available","level":3},{"tag":5,"text":"This is a Block Editor Table with Headers & style stripes","link":"this-is-a-block-editor-table-with-headers-style-stripes","content":"This is a Block Editor Table with Headers & style stripes","level":3}]"> <ul class="uagb-toc__list"> <li> <a href="#h1-heading">H1 Heading</a> </li> </ul> <ul class="uagb-toc__list"> <li> <a href="#h2-heading">H2 Heading</a> </li> </ul> <ul class="uagb-toc__list"> <li> <a href="#h3-heading">H3 Heading</a> </li> </ul> <ul class="uagb-toc__list"> <li> <a href="#h4-heading">H4 Heading</a> </li> </ul> <ul class="uagb-toc__list"> <li> <a href="#h5-heading">H5 Heading</a> </li> </ul> <ul class="uagb-toc__list"> <li> <a href="#h6-heading">H6 Heading</a> </li> </ul> <li> <a href="#accordion">Accordion</a> </li> <ul class="uagb-toc__list"> <li> <a href="#this-is-a-short-code-table-headers-are-not-available">This is a Short code Table Headers are not available</a> </li> <li> <a href="#this-is-a-block-editor-table-with-headers-style-stripes">This is a Block Editor Table with Headers & style stripes</a> </li> </ul> </div> </div>
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Block: Table of Contents Markup not correct’ is closed to new replies.