Skip to content

CMS & Logic4 min read

Add link anchors to your CMS collections in Webflow

Introduction

ElementCustom attribute / IDValue
Embed link (source)href#{Slug} from the CMS field
Embed target (destination)id{Slug} from the same CMS field

In this tutorial, Sandro, cofounder of the Gemeos Webflow agency, shows you how to add anchor links with your CMS collections in Webflow.

Webflow doesn't support dynamic anchors with the CMS, but there's a workaround: use the embed component, build your own button, and dynamically pull the anchor from your collection.

Here's how to do it! ✌🏼

Set the link using the CMS "slug" field. You can use any other CMS field for this, or even create an extra field, but the "slug" field does the job.

<a href="#{Slug}">Name</a>

2. Add an "embed" element inside your CMS collection

Set the ID to the same CMS field you used in step 1 (the {slug} in my case)

<div id="{Slug}"></div>

3. Test the result

You can test the result directly in the Webflow editor

Published on Apr 10, 2025

Sandro DA SILVA

Growth Marketer, Webflow expert, and jack-of-all-trades. Sandro handles commercial operations, ensures projects run smoothly, and addresses marketing-related issues (SEO, Tracking, Copywriting, etc).

You might be interested in these tutorials

Related tutorials

See all

You're going to working with us, guaranteed

Ready to launch your business?

get a quote

Let’s f*****G GO !!