Last active
August 29, 2015 14:00
-
-
Save davebonds/11272359 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
/** | |
* This file adds a Landing template to any Agent Evolution Genesis Child Theme. | |
* | |
* @author Agent Evolution | |
* REPLACE themename WITH THE NAME OF YOUR THEME | |
*/ | |
/* | |
Template Name: Landing | |
*/ | |
//* Add custom body class to the head | |
add_filter( 'body_class', 'themename_add_body_class' ); | |
function themename_add_body_class( $classes ) { | |
$classes[] = 'themename-landing'; | |
return $classes; | |
} | |
//* Force full width content layout | |
add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' ); | |
//* Remove site header elements | |
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 navigation | |
remove_action( 'genesis_after_header', 'genesis_do_nav' ); | |
remove_action( 'genesis_after_header', 'genesis_do_subnav' ); | |
//* Remove breadcrumbs | |
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); | |
//* Remove site footer widgets | |
remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' ); | |
//* Remove site footer elements | |
remove_action( 'genesis_footer', 'themename_footer' ); | |
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 ); | |
//* Run the Genesis loop | |
genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment