jQuery.Pin is an excellent jQuery script to pin any element to the top of a container.
In this article I shall go over implementing jQuery.Pin in WordPress to make Primary Navigation menu and a widget in News Pro (a Genesis child theme) stick to the top of screen as the rest of the page content gets scrolled.
Download jquery.pin.js and upload it to /js directory under the child theme.
Create a file named jquery.pin.init.js having the following code and upload it to /js directory:
To view the full content, please sign up for the membership.
Already a member? Log in below or here.