forked from cdukes/bones-for-genesis-2-0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page_custom.php
32 lines (25 loc) · 897 Bytes
/
page_custom.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
if( !defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
/*
Template Name: Custom Template Starter
*/
/**
* Add a custom body class to this page template. A nicer CSS hook than the WP template default
*
* @since 2.0.8
*/
add_filter( 'body_class', 'bfg_custom_template_body_class' );
function bfg_custom_template_body_class( $classes ) {
$classes[] = 'landing';
return $classes;
}
/**
* Force a layout setting for the page
*
* See: http://www.briangardner.com/code/force-layout-setting/
*
* @since 2.0.0
*/
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
// Other possible layouts: __genesis_return_content_sidebar, __genesis_return_sidebar_content, __genesis_return_content_sidebar_sidebar, __genesis_return_sidebar_sidebar_content, __genesis_return_sidebar_content_sidebar, __genesis_return_full_width_content
genesis();