Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
//This codes gets added to the home_genesis_meta add actions in the home.php file, around line 15
add_action( 'genesis_loop', 'agency_home_full_helper' );
//This code gets added to the end of the home.php file before the genesis() tag around line 67
function agency_home_full_helper() {
if ( is_active_sidebar( 'full-content' ) ) {
echo '<div id="full-content">';
dynamic_sidebar( 'full-content' );
echo '</div><!-- end #full-content -->';
}
}
// Register full-width content widget after default home page widgets
// This code is added to the end of your child themes functions.php file
/**
* @author Brad Dalton - WP Sites
*
* @link http://wpsites.net/
*/
genesis_register_sidebar( array(
'id' => 'full-content',
'name' => __( 'Full Content', 'agency' ),
'description' => __( 'This is the full-width content section.', 'agency' ),
) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment