Hi @gabbyeebeckford,
I hope you are well today and thank you for your question.
You can try achieving this by downloading the plugin attached to the following reply
https://colorlib.com/wp/forums/topic/fixed-header-on-every-page/#post-37757
and then change the code in its file colorlib-plugin.php as following.
<?php
/*
Plugin Name: Colorlib Plugin
Description: Quick Custom Solution Plugin for Implementing Custom Solution.
Version: 1.0.0
Author: Movin
Author URI: https://freewptp.com/
License: GNU General Public License (Version 2 - GPLv2)
*/
function add_custom_scripts(){
if( ! wp_is_mobile() ) {
?>
<script type="text/javascript">
jQuery("document").ready(function($){
var nav = $('.navbar-default .navbar-collapse');
var con_height = $('.navbar-default .navbar-collapse').height();
$(window).scroll(function () {
if ($(this).scrollTop() > con_height) {
nav.addClass("f-nav");
} else {
nav.removeClass("f-nav");
}
});
});
</script>
<style>
.navbar-default .navbar-collapse.f-nav {
position: fixed;
top: 0px;
z-index: 9999;
width: 100%;
max-width: 1154px;
background: #474747;
margin: 0;
}
</style>
<?php }
}
add_action('wp_footer', 'add_custom_scripts', 99);
Best Regards,
Movin