Archived topic
HTML Anchor
7 replies · Started by vasu on July 4, 2020
Hi,
I created a TOC using the Headline block and HTML anchors. However, the anchor is going to the start of the content in the section and I would like it to go to the heading of that section. Is there anything I can do to style it that way? Thanks!
Hi there,
Have you figured out?
I clicked on Essential Facts About the Montana de Oro Bluff Trail and looks like it's going to the correct place:
https://www.screencast.com/t/PWfOPjlv
No I haven't. It is working correctly on mobile. On desktop it goes to just below the heading. On tablet it goes to random places in the content.
Seems to work for me when I tested.
Can you try using the full link like href instead of just the ID?
That brings up a server not found error.
The first method works now on desktop and mobile. But now I am unable to add a link while in headline mode.
Once I type in something in that block, how do I get the link icon to show up?
Thanks!
The link icon should show by default.
I believe there was a conflict with YoastSEO. Are you using that plugin?
That is the issue! Thanks much!
No problem :)