Skip to content

Instantly share code, notes, and snippets.

@nutsandbolts
Created December 27, 2015 22:34
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 nutsandbolts/ba73844299b7b28ac0da to your computer and use it in GitHub Desktop.
Save nutsandbolts/ba73844299b7b28ac0da to your computer and use it in GitHub Desktop.
Alternate landing page template for Altitude Pro
<?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