Skip to content

Instantly share code, notes, and snippets.

@braddalton
Last active December 16, 2015 18:29
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 braddalton/5477737 to your computer and use it in GitHub Desktop.
Save braddalton/5477737 to your computer and use it in GitHub Desktop.
//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