public
Created

home.php support for AppThemes Vantage theme. Place this code in your functions.php of your child theme.

  • Download Gist
functions.php
PHP
1 2 3 4 5 6 7 8 9 10
add_action( 'template_include', 'pjbd_home_include' );
function pjbd_home_include( $template ) {
 
if( is_front_page() ) :
remove_filter( 'template_include', array( 'APP_Wrapping', 'wrap' ), 99 );
$template = locate_template( 'home.php' );
endif;
 
return $template;
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.