Created
January 6, 2014 15:30
-
-
Save bizzthemes/8284426 to your computer and use it in GitHub Desktop.
Create a custom template in a child theme: Landing page
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 | |
//* Template Name: Landing | |
//* Force full width content layout | |
add_filter( 'bizznis_pre_get_option_site_layout', 'bizznis_return_landing_layout' ); | |
function bizznis_return_landing_layout() { | |
return 'full-width-content'; | |
} | |
//* Remove header and footer for this page template | |
add_action( 'bizznis_before', 'bizznis_page_landing_hooks' ); | |
function bizznis_page_landing_hooks() { | |
remove_action( 'bizznis_header', 'bizznis_do_header' ); | |
remove_action( 'bizznis_footer', 'bizznis_do_footer' ); | |
} | |
//* Run the Bizznis loop | |
bizznis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment