Website X5 v15: How to create sticky bar/header that is always visible?
Auteur : Robert H.
Visité 489,
Followers 1,
Partagé 0
Hi there!
I am using Website X5 Evoluation v15, and I would like to create either a header (or possibly sticky bar) that is always visible at the top of the page. It should be visible whether you have scrolled down the page or not, and it should not slide into view or be animated in any way. It should just always be visible, no matter where you are on the page.
The behavior I'm going for is illustrated by the headers on these example pages:
- https://www.x5tuts.com/template/tamarillo-v13/
- https://www.x5tuts.com/template/bistro/index.html
- http://xaratemplate.co.uk/vintagecar/
I have seen suggested solutions for this issue for previous versions of the X5 software, but they do not seem to work for version 15.
I'm not afraid of writing a bit of code if need be. I'd really appreciate a solution. Thanks in advance!
Posté le
Auteur
LOL, of course, moments after submitting this question, I believe I've discovered a solution! (Found it in this post: https://helpcenter.websitex5.com/fr/post/155775 thanks Jamie B!) I'll post it here in case anyone else comes across this post looking for a solution.
Here is the code you need...
<style>
#imHeaderBg, #imHeader, #imHeaderObjects, #imMnMnContainer, #imMnMn {
position: fixed;
z-index:100;
}
</style>
...and here is where you need to put it:
For a specific page only:
For your entire site/all your pages:
This worked for me in v15.0.1 when I started from a blank template. I hope it works for you too. Best of luck!