Last active
January 8, 2020 16:08
-
-
Save braddalton/5487648 to your computer and use it in GitHub Desktop.
Custom Page Template Genesis http://wpsites.net/web-design/make-custom-page-template/
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