Hello Shaun,
Adding a custom css to have the topbar fixed in mobile device or smaller screens will only create conflict or issues. You will need a combination of JS and custom css to be able to resolve this.
- Please add this custom JS in X > Them Options > JS
jQuery(function($) {
if( $(window) > 979 ) {
$(window).scroll(function(){
if($(window).scrollTop() > 0 ){
$('.x-topbar').addClass('x-topbar-fixed');
} else {
$('.x-topbar').removeClass('x-topbar-fixed');
}
});
}
});
- And then use this custom css:
@media(max-width: 979px){
.x-topbar.x-topbar-fixed {
position: fixed;
width: 100%;
top: 0;
}
.x-navbar.x-navbar-fixed-top,
.x-main {
top: 95px;
}
}
For reference, you can check out this thread: https://theme.co/apex/forum/t/create-a-fixed-top-bar/41675/5
We would loved to know if this has work for you. Thank you.