Forked from braddalton/Custom Full Width Page Template Genesis
Created
May 9, 2017 19:32
-
-
Save jasonhobbsllc/56c4135482049f9be00c26c68a9f4844 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 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