Created
November 5, 2015 05:34
-
-
Save farookibrahim/c82cc8994f48c7c32638 to your computer and use it in GitHub Desktop.
Remove Breadcrumb in Bethlehem
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( 'bethlehem_header_content' ) ) { | |
function bethlehem_header_content() { | |
global $bethlehem_page_metabox; | |
if( ! is_page_template( array( 'template-homepage.php', 'template-homepage-v2.php' ) ) ) { | |
if( is_page() && method_exists( $bethlehem_page_metabox, 'get_the_value' ) ) { | |
$static_block_ID = $bethlehem_page_metabox->get_the_value( 'header_content_static_block_ID' ); | |
if( !empty( $static_block_ID ) && $static_block_ID != 0 ) { | |
$content = bethlehem_get_the_content_by_id( $static_block_ID ); | |
if( !empty( $content ) ) { | |
$content = apply_filters('the_content', $content ); | |
echo '<div class="header-content">' . $content . '</div>'; | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment