Skip to content

Instantly share code, notes, and snippets.

@yousufansa
Last active October 6, 2020 07:03
Show Gist options
  • Select an option

  • Save yousufansa/cec71ce3b956fd396070ab6c0b24fffb to your computer and use it in GitHub Desktop.

Select an option

Save yousufansa/cec71ce3b956fd396070ab6c0b24fffb to your computer and use it in GitHub Desktop.
Jobhunt - Elementor Pro Custom Header/Footer Container Issue Fix
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