Forked from braddalton/Custom Full Width Page Template Genesis
Last active
August 29, 2015 14:06
-
-
Save leogono/bd3ddedc528a799fbf9b to your computer and use it in GitHub Desktop.
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 a custom template to the AgentPress Child Theme. | |
* | |
* @author Brad Dalton | |
* @link http://wpsites.net/web-design/make-custom-page-template/ | |
* @package Agentpress | |
* @subpackage Customizations | |
*/ | |
/* | |
Template Name: Custom | |
*/ | |
// Add custom body class to the head | |
add_filter( 'body_class', 'add_body_class' ); | |
function add_body_class( $classes ) { | |
$classes[] = 'agentpress-custom'; | |
return $classes; | |
} | |
// Force full width page layout | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment