# Table of contents not anchor linking

**URL:** <https://forum.finsweet.com/t/table-of-contents-not-anchor-linking/1726>\
**Category:** General\
**Created:** [August 1, 2023, 3:55pm UTC](https://forum.finsweet.com/t/table-of-contents-not-anchor-linking/1726 "2023-08-01T15:55:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrsdesigns](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/chrsdesigns/32/3444_2.png) [@chrsdesigns](https://forum.finsweet.com/u/chrsdesigns)\
**Post date:** [August 1, 2023, 3:55pm UTC](https://forum.finsweet.com/t/table-of-contents-not-anchor-linking/1726/1 "2023-08-01T15:55:33Z")

</div>

Hello I am having trouble getting the TOC table to work. Right now the links just shoot me straight back up the page instead of going to the correct sections. And the TOC h2s are generating text sitting ontop of the link wrappers.

This is how my links are structured

 ![Screenshot 2023-08-01 at 10.49.38 AM](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/a/a36e54c24ba3a50039f7a171c7610ad883fa6c31.png)

And this is how my content structured

 ![Screenshot 2023-08-01 at 10.50.33 AM](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/6/62aa6888df3202915c27c3715843244cded4be4b.png)

As you can see I just wanna make it so the user anchor links to just the main chapters of H2’s

Any help would be greatly appreciated.  
My read only link  
[https://preview.webflow.com/preview/rnl?utm\_medium=preview\_link&utm\_source=designer&utm\_content=rnl&preview=4620b2636afaa1b14e4d4be6adb4f5d1&pageId=64b811394a1df8a4681ea886&workflow=preview](https://preview.webflow.com/preview/rnl?utm_medium=preview_link&utm_source=designer&utm_content=rnl&preview=4620b2636afaa1b14e4d4be6adb4f5d1&pageId=64b811394a1df8a4681ea886&workflow=preview)

My live site  
[https://rnl.webflow.io/narrative-house#](https://rnl.webflow.io/narrative-house#)

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [August 2, 2023, 12:19am UTC](https://forum.finsweet.com/t/table-of-contents-not-anchor-linking/1726/2 "2023-08-02T00:19:25Z")

</div>

Hey @chrsdesigns! The Attributes setup looks correct, can you test copy-pasting the structure from the example into your project?

---

<div class="post-metadata">

**Author:** ![chrsdesigns](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/chrsdesigns/32/3444_2.png) [@chrsdesigns](https://forum.finsweet.com/u/chrsdesigns)\
**Post date:** [August 2, 2023, 3:04pm UTC](https://forum.finsweet.com/t/table-of-contents-not-anchor-linking/1726/3 "2023-08-02T15:04:12Z")

</div>

Ok it looks like I did and the examples is not working either.

[https://preview.webflow.com/preview/rnl?utm\_medium=preview\_link&utm\_source=designer&utm\_content=rnl&preview=4620b2636afaa1b14e4d4be6adb4f5d1&pageId=64b811394a1df8a4681ea886&workflow=preview](https://preview.webflow.com/preview/rnl?utm_medium=preview_link&utm_source=designer&utm_content=rnl&preview=4620b2636afaa1b14e4d4be6adb4f5d1&pageId=64b811394a1df8a4681ea886&workflow=preview)

[https://rnl.webflow.io/narrative-house#](https://rnl.webflow.io/narrative-house#)

Do you know what could be causing this?

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [August 2, 2023, 6:21pm UTC](https://forum.finsweet.com/t/table-of-contents-not-anchor-linking/1726/4 "2023-08-02T18:21:17Z")

</div>

Sorry! I meant for you to add the structure and style it as needed. This table is working as expected so far with the anchor linking but there seem to be two content instances and it is not 100% working as it should

![Screen Shot 2023-08-02 at 12.19.25](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/8/87c8a97d65f88f493998e8f92732c43feb962948.png)

---

<div class="post-metadata">

**Author:** ![chrsdesigns](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/chrsdesigns/32/3444_2.png) [@chrsdesigns](https://forum.finsweet.com/u/chrsdesigns)\
**Post date:** [August 2, 2023, 9:36pm UTC](https://forum.finsweet.com/t/table-of-contents-not-anchor-linking/1726/5 "2023-08-02T21:36:22Z")

</div>

Could you please be a bit more specific? I thought I styled everything correctly? There migh be two instances becasue you told me copy paste the example? Can you share a screen shot of what this might look like in the webflow designer? Thank you!

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [August 2, 2023, 10:01pm UTC](https://forum.finsweet.com/t/table-of-contents-not-anchor-linking/1726/6 "2023-08-02T22:01:10Z")

</div>

Sure! So this is what I meant, to test this you should remove the Rich Text element from the example and place your content div like in the image below.

You should also remove the current Table of Contents set up so you are only left with the table from the docs but with your content.

 ![Screen Shot 2023-08-02 at 15.58.06](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/0/01a339a698f53899ed5f81fb2968c6b2e281a6d9.jpeg)

---

<div class="post-metadata">

**Author:** ![chrsdesigns](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/chrsdesigns/32/3444_2.png) [@chrsdesigns](https://forum.finsweet.com/u/chrsdesigns)\
**Post date:** [August 4, 2023, 3:58pm UTC](https://forum.finsweet.com/t/table-of-contents-not-anchor-linking/1726/7 "2023-08-04T15:58:04Z")

</div>

Ok It works but it does not slide up or down it just jumps

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [August 4, 2023, 7:37pm UTC](https://forum.finsweet.com/t/table-of-contents-not-anchor-linking/1726/8 "2023-08-04T19:37:38Z")

</div>

Could you record a loom on this issue? It seems to slide down on my end.
