Created
March 16, 2017 17:37
-
-
Save digamber89/3e00da8d7d4e03359a2c9db3ab5f7ea0 to your computer and use it in GitHub Desktop.
Change Front Page Template
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
add_filter( 'template_include', 'portfolio_page_template', 99 ); | |
function portfolio_page_template( $template ) { | |
if ( is_front_page() ) { | |
$new_template = locate_template( array( 'tpl-duplicate-homepage.php' ) ); | |
if ( '' != $new_template ) { | |
return $new_template ; | |
} | |
} | |
return $template; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment