-
-
Save billerickson/6873322915ea8a63015b 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 | |
/** | |
* EA Genesis Child. | |
* | |
* @package EAGenesisChild | |
* @since 1.0.0 | |
* @copyright Copyright (c) 2014, Contributors to EA Genesis Child project | |
* @license GPL-2.0+ | |
*/ | |
// Remove 'site-inner' from structural wrap | |
add_theme_support( 'genesis-structural-wraps', array( 'header', 'footer-widgets', 'footer' ) ); | |
/** | |
* Add the attributes from 'entry', since this replaces the main entry | |
* | |
* @param array $attributes Existing attributes. | |
* @return array Amended attributes. | |
*/ | |
function be_site_inner_attr( $attributes ) { | |
// Add a class of 'full' for styling this .site-inner differently | |
$attributes['class'] .= ' full'; | |
// Add the attributes from .entry, since this replaces the main entry | |
$attributes = wp_parse_args( $attributes, genesis_attributes_entry( array() ) ); | |
return $attributes; | |
} | |
add_filter( 'genesis_attr_site-inner', 'be_site_inner_attr' ); | |
/** | |
* Include Page Content | |
* | |
*/ | |
function be_home_page_content() { | |
echo '<div class="section home-content"><div class="wrap">'; | |
genesis_do_post_content(); | |
echo '</div></div>'; | |
} | |
add_action( 'be_content_area', 'be_home_page_content' ); | |
// Build the page | |
get_header(); | |
do_action( 'be_content_area' ); | |
get_footer(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment