MyBB Community Forums

Full Version: Hide header on scroll, show on scroll up
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi folks!

I have found this tutorial:

with a working example:

Anyway I have an issue with applying to MyBB, is there anybody who can help me? It is sufficient for MyBB default theme. Thank you!

It bases on the <header> tag. For MyBB standard theme it needs to be adopted to the element id "#header".
So you need to change the JS code to something like this.

BTW. This simple mod is great but with a loss on flexibility due to fixed position and pixel-based dimensions/padding.

Good luck!