@anchor
Create linkable anchors that appear in the Elements Link Panel
Last updated
Was this helpful?
Was this helpful?
<section id="@anchor("features")">
<h2>Features</h2>
<!-- Section content -->
</section><div id="@anchor(sectionId)"></div><article>
<header id="@anchor("header")">
<h1>{{title}}</h1>
</header>
<section id="@anchor("content")">
{{content}}
</section>
<footer id="@anchor("footer")">
<!-- Footer content -->
</footer>
</article><div
id="@anchor(accordionAnchor)"
class="accordion-item"
>
<div class="accordion-header">
@dropzone("title", title: "Title")
</div>
<div class="accordion-content">
@dropzone("content", title: "Content")
</div>
</div><nav id="@anchor("mainNav")" class="navigation">
<!-- Navigation items -->
</nav>// In hooks.js
rw.addAnchor({
id: "custom-anchor",
title: "Custom Section"
});