Skip to content

Instantly share code, notes, and snippets.

@braddalton
Created August 15, 2013 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save braddalton/6243566 to your computer and use it in GitHub Desktop.
Save braddalton/6243566 to your computer and use it in GitHub Desktop.
<?php
/**
* This file adds the Landing page template to the Custom Theme.
*
* @author StudioPress
* @package Genesis Custom
* @subpackage Customizations
*/
/*
Template Name: Landing
*/
// Add custom body class to the head
add_filter( 'body_class', 'custom_add_body_class' );
function custom_add_body_class( $classes ) {
$classes[] = 'custom-landing';
return $classes;
}
// Remove header, navigation, breadcrumbs, footer widgets, footer
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
remove_action( 'genesis_header', 'genesis_do_header' );
remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );
remove_action( 'genesis_after_header', 'genesis_do_nav' );
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs');
remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
remove_action( 'genesis_footer', 'genesis_do_footer' );
remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );
genesis();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment