Created
August 31, 2017 07:35
-
-
Save topleague/8c734362e19301c40ee6ec7311dc9e2c to your computer and use it in GitHub Desktop.
Simple Way to Display Multiple Widget Areas
This file contains hidden or 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
// 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