Cannot make navbar sticky, after I made it a component

Hi, I need more pages, so I made navbar component in order to use same navbar across the website, but after that I cannot make navbar stick to the top
I tried to do it on class, on tag, on component, it just doesnt sticks
not sure if it doesnt work, or I just dont know how to to that


Can you give me your website url, so I can check?

Of course
Here you go:


You need to set class to the component holder tag, then it should work properly.

1 Like

I have the same problem.

How exactly can I apply this fix?

“set class to the component holder tag”

Hey @Stolichnaya

Did you add 0px to the top position? :slight_smile:
Skærmbillede 2024-02-20 214246

Skærmbillede 2024-02-20 214101

1 Like

You are so right!

It was there before :slight_smile:

Thanks a lot!


The component holder is this green tag/element (ignore the Null name :D)


So for sticky to work, it must be set on that component holder, and not on component inside tags.

In the @TheMark image he provided, “Vita Header” is the tag that holds the component, and the “Section” is first component tag/element of component.

So if you remove “Vita Header” you are not removing the component, just the component holder on that page, but if you remove “Section” then it’s bye bye component :smiley: