Snippets: Sticky Header on Scroll Up

Important: This snippet has been deprecated because we've released a plugin so that you can accomplish the same thing but using a plugin rather than maintaining your own custom code.

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)