the top bar including logo stays sticky whenever I scroll up and down the page.
Acutally I wanna make it sticky only when I scroll up and not sticky when scroll down the page.
if it’s not possible then I just wanna remove sticky feature.
the top bar including logo stays sticky whenever I scroll up and down the page.
Acutally I wanna make it sticky only when I scroll up and not sticky when scroll down the page.
if it’s not possible then I just wanna remove sticky feature.
There is no setting to remove the sticky header – it’s a fundamental part of Discourse.
You could disable the stickiness by creating a theme and adding this to your CSS:
.d-header {
position: relative;
}
This may impact the layout in other ways and cause issues with the dropdown menus, so you’d need to write some additional CSS to get around those problems. Getting started with themes: Structure of themes and theme components.
There are also a lot of additional topics that might help you with general Discourse questions in the howto category.
Hallo, ich bin neugierig, was diese Probleme genau sein könnten? Ich habe die Regel position: fixed mit dem Inspektor deaktiviert, um ein bisschen herumzuspielen. Ich habe die Menüs ausprobiert und alles scheint gut zu funktionieren.
Mir ist aufgefallen, dass die Kopfhöhe vielleicht beim Scrollen eine Rolle spielt, aber ich bin mir noch nicht sicher, welche Auswirkungen das hat. topictimeline: discourse/app/assets/javascripts/discourse/app/widgets/topic-timeline.js at 9482ddff7343d2e913a5177d2cdef100140b57f2 · discourse/discourse · GitHub
keyboardshortcuts:
discourse/app/assets/javascripts/discourse/app/lib/keyboard-shortcuts.js at 350fe932cafa2874e5fd87b4d401223754158656 · discourse/discourse · GitHub
offset calculator: discourse/app/assets/javascripts/discourse/app/lib/offset-calculator.js at 7a2e8d3ead63c7d99e1069fc7823e933f931ba85 · discourse/discourse · GitHub
Ich habe auch versucht, position: relative einzustellen, aber dann habe ich etwas leeren Raum oben auf der Seite. position: absolute scheint jedoch gut zu funktionieren.
PS: Ich weiß, dass die fixierte Kopfzeile dir sehr wichtig ist. Die fixierte Kopfzeile war mir vorher auch recht, aber ich befinde mich auf einem längeren Urlaub in Taiwan und muss den ganzen Tag diesen winzigen Laptop-Bildschirm nutzen. Ich werde sie in einer Theme-Komponente entfernen. Es tut mir leid, aber ich muss es tun. Es macht mir schwindelig ![]()
Es gibt möglicherweise keine verwandten Probleme, aber das ist etwas, das wir bei vielen Seiten noch nicht gesehen haben, daher wurde es nicht annähernd so stark getestet wie das Standardverhalten.