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.
안녕하세요, 이 문제들이 구체적으로 어떤 것일지 궁금합니다. 인스펙터에서 position: fixed 규칙을 끄고 이것을 시험해 보았습니다. 메뉴를 이것저것 조작해 보았는데, 모든 것이 정상적으로 작동하는 것 같습니다.
헤더 높이가 스크롤링과 관련하여 중요할 수 있다는 점을 발견했지만, 아직 그 함의가 무엇인지 확실하지 않습니다. 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
position: relative을 설정해 보기도 했는데, 그러면 페이지 상단에 빈 공간이 생겼습니다. 하지만 position: absolute는 정상적으로 작동하는 것 같습니다.
P.S.: 고정 헤더가 여러분에게 매우 중요하다는 것을 알고 있습니다. 이전에는 고정 헤더에 문제가 없었지만, 현재 대만에서 장기 휴가를 보내고 있어 하루 종일 이 작은 노트북 화면을 사용해야 합니다. 테마 컴포넌트에서 이를 제거할 것입니다. 죄송하지만 이렇게 해야만 합니다. 어지럽기 때문입니다 ![]()
관련 문제가 없을 수도 있지만, 많은 사이트에서 이러한 방식을 사용하는 것을 본 적이 없어 기본 동작만큼 충분히 테스트되지 않았습니다.