Last active
October 6, 2020 07:03
-
-
Save yousufansa/cec71ce3b956fd396070ab6c0b24fffb to your computer and use it in GitHub Desktop.
Jobhunt - Elementor Pro Custom Header/Footer Container Issue Fix
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
| if ( ! function_exists( 'jh_child_elementor_get_header_after' ) ) { | |
| function jh_child_elementor_get_header_after() { | |
| if( did_action( 'elementor_pro/init' ) && ! is_page() ) { | |
| ?> | |
| <div id="content" class="site-content" tabindex="-1"> | |
| <div class="container"> | |
| <div class="site-content-inner"> | |
| <?php | |
| } | |
| } | |
| } | |
| add_action( 'get_header', 'jh_child_elementor_get_header_after', 20 ); | |
| if ( ! function_exists( 'jh_child_elementor_get_footer_before' ) ) { | |
| function jh_child_elementor_get_footer_before() { | |
| if( did_action( 'elementor_pro/init' ) && ! is_page() ) { | |
| ?> | |
| </div> | |
| </div> | |
| </div> | |
| <?php | |
| } | |
| } | |
| } | |
| add_action( 'get_footer', 'jh_child_elementor_get_footer_before' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment