Skip to content

Instantly share code, notes, and snippets.

@yousufansa
Created June 13, 2019 15:07
Show Gist options
  • Save yousufansa/bf498dbd57ac3120b3fef90530ffe380 to your computer and use it in GitHub Desktop.
Save yousufansa/bf498dbd57ac3120b3fef90530ffe380 to your computer and use it in GitHub Desktop.
Electro - Elementor Pro Custom Header/Footer Issue Fix
if ( ! function_exists( 'el_child_get_header_after' ) ) {
function el_child_get_header_after() {
if( did_action( 'elementor_pro/init' ) ) {
?>
<div id="content" class="site-content" tabindex="-1">
<div class="container">
<?php
}
}
}
add_action( 'get_header', 'el_child_get_header_after', 20 );
if ( ! function_exists( 'el_child_get_footer_before' ) ) {
function el_child_get_footer_before() {
if( did_action( 'elementor_pro/init' ) ) {
?>
</div>
</div>
<?php
}
}
}
add_action( 'get_footer', 'el_child_get_footer_before' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment