Last active
December 16, 2015 18:29
-
-
Save braddalton/5477737 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
//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