Skip to content

Instantly share code, notes, and snippets.

@cparkinson
Created July 22, 2020 14:52
Show Gist options
  • Save cparkinson/1ed3833908da9bb9b100aad7841cb1eb to your computer and use it in GitHub Desktop.
Save cparkinson/1ed3833908da9bb9b100aad7841cb1eb to your computer and use it in GitHub Desktop.
Nancy Mikyska's snippet for fixing Divi header height
<script>
jQuery(document).ready(function(){
var totalheight = 0;
jQuery(".et-l--header .et_builder_inner_content .et_pb_section").each(function(){
totalheight = totalheight + jQuery(this).outerHeight();
});
totalheight = totalheight + "px";
jQuery("#et-main-area").css("padding-top",totalheight);
});
</script>
<style>
.et_builder_inner_content{
z-index: auto !important;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment