Last active
March 2, 2018 04:39
-
-
Save carlosonweb/ef10928646c8dc2cce85cefab495afb4 to your computer and use it in GitHub Desktop.
How to make a sticky Topbar in Beaver Themer.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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