Created
July 22, 2020 14:52
-
-
Save cparkinson/1ed3833908da9bb9b100aad7841cb1eb to your computer and use it in GitHub Desktop.
Nancy Mikyska's snippet for fixing Divi header height
This file contains hidden or 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
<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