Sticky Header not working | WordPress.org

Now i could manage to make it work, but i cannot understand what i did!

lisa

(@contentiskey)

I think this is what happened: you put the header template part in a group block and made the group block with the postition: sticky to get it to work.

I see this when I inspect your header code:

class= "wp-block-group has-global-padding is-layout-constrained wp-container-5 is-position-sticky"

That is exactly what I thought I was doing even before. Otherwise the position option would not be available…i guess🤔😅

Anyway, now it works and i can mark this post as resolved. Thank you for your reply

  • This reply was modified 15 minutes ago by rosco666.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer