Created
June 13, 2019 15:07
-
-
Save yousufansa/bf498dbd57ac3120b3fef90530ffe380 to your computer and use it in GitHub Desktop.
Electro - Elementor Pro Custom Header/Footer Issue Fix
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
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