# Render headings as anchors

**URL:** <https://zola.discourse.group/t/render-headings-as-anchors/1116>\
**Category:** Feature requests\
**Created:** [December 24, 2021, 4:45am UTC](https://zola.discourse.group/t/render-headings-as-anchors/1116 "2021-12-24T04:45:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![emtes](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/emtes/32/645_2.png) [@emtes](https://zola.discourse.group/u/emtes)\
**Post date:** [December 24, 2021, 4:45am UTC](https://zola.discourse.group/t/render-headings-as-anchors/1116/1 "2021-12-24T04:45:43Z")

</div>

I am aware of being able to insert anchors next to headings (great feature!), but would also like the ability to render the heading as an anchor instead.

The markup would look something like this:

```auto
<h2>
    <a href="#{{ id }}">Sample</a>
</h2>

```

Similar to the current anchors, we could have the ability to override a default template for the anchor markup.

Thanks for reading!

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [December 24, 2021, 7:34pm UTC](https://zola.discourse.group/t/render-headings-as-anchors/1116/2 "2021-12-24T19:34:40Z")

</div>

That is very unlikely to be added, it’s too similar to the anchor next to the title. Unless many people request it, it’s not going to happen.
