WebSite X5Help Center

 
Michael T.
Michael T.
User

How to disable the sticky bar on individual pages?  en

Auteur : Michael T.
Visité 841, Followers 1, Partagé 0  

Hello,

in order to create an entry page wiith our cookie policy I need to disable the sticky bar for that page. Is that possible and how do I do it?

Thank you for your help,

Michael

Posté le
5 RéPONSES - 1 UTILES - 1 CORRECT
Дмитрий Тулупов
Дмитрий Тулупов
User

The code you need to use is this:

<style>

#cookie-law-message {display: none !important;}

</style>

Step 3 - Map > Page Properties Window > Options in the Expert Section | ▪Custom code: Before closing HEAD tag. 

Lire plus
Posté le de Дмитрий Тулупов
Michael T.
Michael T.
User
Auteur

Thank you fo your suggestion :-) unfortunetely I'm not sure, if I used it wrong or if it does something different. When itried it it doesn't have the effect I want to achieve. I want to use the 'sticky bar'-function for the websites, so that a menu comes up at the top of the page when the content is scrolled upwards and the header of the page becomes invisible. Then I want to create an entry page for cookie consent. On that page the 'sticky bar' should not appear. I don't know how to turn it off just for this one page...

The 'Entry Page' kindof fulfills this function, but it needs html programming (which I haven't learned) to make it work in that context - and I'm not sure if it even works at all. I used it here :https://youngmindlab.org/ It seemed to work once and now the site is stuck at the entry page and doesn't enter the main website any more. It works in the preview, but not from the server any more. Different topic, lot's of headscratching...

Thanks,

Michael

Lire plus
Posté le de Michael T.
Axel  
Axel  
User
Meilleur utilisateur du mois FR

This code seems more accurate to hide sticky bar for a specific page.

Add it into the properties of the page before 'to close the <head> tag'

<style>
#imStickyBarContainer div {
display:none;
}
</style>

Lire plus
Posté le de Axel  
Michael T.
Michael T.
User
Auteur

Thank you so much, that works here :-))

Michael

Lire plus
Posté le de Michael T.
Axel  
Axel  
User
Meilleur utilisateur du mois FR

coool..laughing

flag my answer like Ok and closes this post.

Lire plus
Posté le de Axel