Top Bar Sticky Not Working - Question | JoomShaper

Top Bar Sticky Not Working

S

sideri.eirini

Template 7 months ago

Hello. I would like some help. I want the top bar not to disappear when scrolling the page. It should remain fixed like the menu. Template investa

0
3 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 7 months ago #187115

Hi,

This is not easy, and never was default feature. As you noticed Custom CSS changes are needed.

0
S
sideri.eirini
Accepted Answer
7 months ago #187121

If you can tell me what code is needed? Thank you

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 7 months ago #187136

Basic CSS example, how it can be done

#sp-header {position: fixed; animation: none;top: 40px; }
#sp-header.header-sticky {position: fixed; z-index: 9999;top: 40px; animation: none;}
#sp-top-bar 
{position: fixed;top: 0px; height: 40px; display: block; width: 100%; left: 0px; z-index: 9991; }

In Helix documenation you can find info where to use Custom CSS. But probably you know it already.

0