Skip to content

Instantly share code, notes, and snippets.

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 leogono/bd3ddedc528a799fbf9b to your computer and use it in GitHub Desktop.
Save leogono/bd3ddedc528a799fbf9b to your computer and use it in GitHub Desktop.
<?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