Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Design

Brandon Brigham
Brandon Brigham
3,716 Points

How to made sticky header enabled ONLY when scrolling up and NOT when scrolling down

Hi,

If you visit the site I'm working on @ http://thechasedesign.com/axrtek.com you will notice when scrolling down on the pages there is a sticky header that appears at the top of every page.

What I want: To have the sticky header appear ONLY when scrolling UP.

Any ideas? This is a WordPress theme and the designers said I would need to put in custom code however I have no idea what I would put into the code to achieve this effect.

Thanks for any ideas!

1 Answer