Skip to content

Instantly share code, notes, and snippets.

@jeffcdavis
Last active August 29, 2015 14:03
Show Gist options
  • Save jeffcdavis/eecf3f574785d762b79c to your computer and use it in GitHub Desktop.
Save jeffcdavis/eecf3f574785d762b79c to your computer and use it in GitHub Desktop.
Filter hook for hybrid_content_template
<?php
add_filter( 'hybrid_content_template', 'my_content_template' );
function my_content_template( $template ) {
if ( is_front_page() ) {
$has_template = locate_template( array( 'content-feature.php', 'content/feature.php' ), false, false );
if ( $has_template )
$template = $has_template;
}
return $template;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment