-
-
Save nutsandbolts/ba73844299b7b28ac0da to your computer and use it in GitHub Desktop.
Alternate landing page template for Altitude Pro
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 | |
/** | |
* This file adds an Alternate Landing template to the Altitude Pro Theme. | |
* | |
* @author Nuts and Bolts Media, LLC | |
* @package Altitude | |
* @subpackage Customizations | |
*/ | |
/* | |
Template Name: Landing 2 | |
*/ | |
//* Add custom body class to the head | |
add_filter( 'body_class', 'altitude_add_body_class' ); | |
function altitude_add_body_class( $classes ) { | |
$classes[] = 'altitude-landing'; | |
return $classes; | |
} | |
//* Force full width content layout | |
add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' ); | |
//* Remove entry header and page title | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
//* Remove breadcrumbs | |
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); | |
//* Remove site footer widgets | |
remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' ); | |
//* Run the Genesis loop | |
genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment