Possibility to give component instances a unqiue ID (for anchor linking)

On my website I want to anchor link to a component instance. Because unique IDs are replaced for classes it is not possible anymore after saving a section as a component. It would eventually come in handy to make it possible to give instances a unique ID.

For now I am going to wrap a component section inside another section.

Hi,
Welcome to the forum!

You can add a custom ID in Style » CSS, but remember that it gets synced across each instance, so you shouldn’t add the same component twice on a page.

Additionally, you can create/connect a text property to make the ID editable per instance.

Best regards,
timmse

4 Likes

Thanks! That works for me :grin:

But it might still be a good idea to give instances an unique ID.

3 Likes

I don’t see that option in Bricks 2.0. Is this still possible?

Is it possible to add individual CSS IDs? I have a component for speakers information, and want to link to specific speakers on other pages.

I thought linking CSS ID to a text field would work, but it doesn’t.
Screenshot 2025-08-12 at 8.16.45 PM

I found out that you can add ID’s as an attribute :slight_smile:

if you need it in loop easy with dynamic tags

image