Add link anchors with your CMS collections in Webflow

Tools:

Introduction

Webflow does not support dynamic anchors with the CMS, but there is a workaround that is to use the component Embed and create your own button and dynamically extract the anchor from your collection.

Here's how to do it! ✌🏼

1. Insert an “embed” element where you want to create a link to the anchor element

Define the link using the CMS “slug” field (you can use any other CMS field for this or even create an additional field, but the “slug” field does the trick).

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

2. Add an “embed” element to your CMS collection

Define theID as being the same CMS field as the one used in point 1 (the {slug} in my case)

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

3. Test the result

You can test the result in the editor Webflow directly

Author photo
Sandro D.
Updated on
30/5/2024
Growth Marketer, Webflow expert and a jack of all trades. I take care of commercial operations, ensure the smooth running of projects and take care of issues related to marketing (SEO, Tracking, Copywriting, etc.)
Are you stuck with your current site?
Let's talk ?
Welcome
>
Gemeos Academy
>
Add link anchors with your CMS collections in Webflow
These tutorials might interest you

Our tutorials in the same category

See all our tutorials
Illustration traits
We use the best tools

Your site is developed using the best tools and best practices

Gemeos doesn't just offer you a website, but expertise in the best tools to guarantee you the best possible return on your investment.

Figma

To design your custom website and optimize its conversion rate

Webflow

For pixel-perfect, optimized integration of your website

Client-first

Organizing your project to perfection

Wized

To add advanced features to your project

Make

Automate your workflows and save maximum time