Skip to content

Instantly share code, notes, and snippets.

@topleague
Created August 31, 2017 07:35
Show Gist options
  • Save topleague/8c734362e19301c40ee6ec7311dc9e2c to your computer and use it in GitHub Desktop.
Save topleague/8c734362e19301c40ee6ec7311dc9e2c to your computer and use it in GitHub Desktop.
Simple Way to Display Multiple Widget Areas
// Display front-page widget areas.
// Courtesy: Sridhar Katakam
for ( $i = 1; $i <= 2; $i++ ) {
genesis_widget_area( "front-page-{$i}", array(
'before' => '<div class="front-page-' . $i . ' widget-area"><div class="wrap">',
'after' => '</div></div>',
) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment