Skip to content

Instantly share code, notes, and snippets.

@carlosonweb
Last active March 2, 2018 04:39
Show Gist options
  • Save carlosonweb/ef10928646c8dc2cce85cefab495afb4 to your computer and use it in GitHub Desktop.
Save carlosonweb/ef10928646c8dc2cce85cefab495afb4 to your computer and use it in GitHub Desktop.
How to make a sticky Topbar in Beaver Themer.
/**
* First, you need to setup this CSS
*******************************************
.fl-sticky {
position: fixed !important;
width: 100% !important;
left: 0 !important;
top: 0 !important;
z-index: 9999 !important;
border-top: 0 !important;
}
*******************************************
*/
<script>
jQuery(document).ready(function($){
if ( typeof window.FLBuilderConfig === 'undefined' || window.FLBuilderConfig === null ) {
$('#topbar-row').addClass('fl-sticky');
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment