Skip to content

Instantly share code, notes, and snippets.

@braddalton
Created March 12, 2013 04:19
Show Gist options
  • Save braddalton/5140327 to your computer and use it in GitHub Desktop.
Save braddalton/5140327 to your computer and use it in GitHub Desktop.
This PHP code is a copy of the PHP code used to register widgets in the functions.php file. Copy the code and rename all instances of home to custom and paste at the end of your child themes functions.php file.
/** Register widget areas */
genesis_register_sidebar( array(
'id' => 'custom-top',
'name' => __( 'Custom Top', 'magazine' ),
'description' => __( 'This is the custom top section.', 'magazine' ),
) );
genesis_register_sidebar( array(
'id' => 'custom-left',
'name' => __( 'Custom Left', 'magazine' ),
'description' => __( 'This is the custom left section.', 'magazine' ),
) );
genesis_register_sidebar( array(
'id' => 'custom-right',
'name' => __( 'Custom Right', 'magazine' ),
'description' => __( 'This is the custom right section.', 'magazine' ),
) );
genesis_register_sidebar( array(
'id' => 'custom-bottom',
'name' => __( 'Custom Bottom', 'magazine' ),
'description' => __( 'This is the custom bottom section.', 'magazine' ),
) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment