Skip to content

Instantly share code, notes, and snippets.

@farookibrahim
Created November 5, 2015 05:34
Show Gist options
  • Save farookibrahim/c82cc8994f48c7c32638 to your computer and use it in GitHub Desktop.
Save farookibrahim/c82cc8994f48c7c32638 to your computer and use it in GitHub Desktop.
Remove Breadcrumb in Bethlehem
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