Hey Jeffrey,
position: sticky
won’t work if a containing parent’s overflow
property is set to hidden
and that is the case in our themes to support features of our builders and more.
Your claim that it’s simple with CSS properties is only true for basic HTML structures and if you’re following simple tutorials. CSS development is actually complex if you take into account a lot of things that’s why not everything can be achieved easily. Please understand that our theme and builders are only structurally complex because we support a lot of features.
Please watch the walkthrough screencast below to see how it can be achieved in X.
Below is the CSS used in the video and it should be added only in your page’s content CSS because it should not be applied globally because you’re overriding the body’s overflow which was designed to be hidden in our theme.
body {
overflow-x: visible;
}
.x-section .category-header {
position:-webkit-sticky;
position:sticky;
top:60px;
z-index:99;
}
Please also note that the code here is just to show that you can achieve this sticky behavior in X. That code or snippet will not be supported and will not be enhanced by us as custom development is outside the scope of our support.
Hope that helps.