jQuery(document).ready(function( $ ){
$(document).ready(function() {
$(window).scroll(function() {
// Get the current scroll position
var scrollPosition = $(window).scrollTop();
// Add or remove the class based on the scroll position
if (scrollPosition > 50) {
$('#masthead').addClass('fixed-header');
} else {
$('#masthead').removeClass('fixed-header');
}
});
});
});
Hi, this is a comment. To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard. Commenter avatars come from Gravatar.
Hi, this is a comment.
To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.
Commenter avatars come from Gravatar.