Last active
June 17, 2016 02:58
-
-
Save spigotdesign/a83499e706a565208859 to your computer and use it in GitHub Desktop.
Theme layout mod for Hybrid Core layouts featrue
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
<?php | |
/** | |
* Modifies the theme layout | |
* | |
* @access public | |
* @param string $layout | |
* @return string | |
*/ | |
function infusion_mod_theme_layout( $layout ) { | |
if (is_page_template( 'page-templates/landingpage.php' ) ) { | |
$layout = '1c'; | |
} | |
return $layout; | |
} | |
add_filter( 'theme_mod_theme_layout', 'infusion_mod_theme_layout', 15 ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment