Skip to content

Instantly share code, notes, and snippets.

@bizzthemes
Created January 6, 2014 15:30
Show Gist options
  • Save bizzthemes/8284426 to your computer and use it in GitHub Desktop.
Save bizzthemes/8284426 to your computer and use it in GitHub Desktop.
Create a custom template in a child theme: Landing page
<?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