Skip to content

Instantly share code, notes, and snippets.

@cdils
Created December 24, 2012 17:41
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 cdils/4370154 to your computer and use it in GitHub Desktop.
Save cdils/4370154 to your computer and use it in GitHub Desktop.
// Remove this original bit of code
if ( is_active_sidebar( 'featured' ) ) {
echo '<div class="featured">';
dynamic_sidebar( 'featured' );
echo '</div><!-- end .featured -->';
}
// And add in our new code:
if ( is_active_sidebar( 'featured-left' ) ) {
echo '<div class="featured"><div class="featured-left">'; //Add the left style div
dynamic_sidebar( 'featured-left' ); //Add the featured left widget
echo '</div><div class="featured-right">'; //Add the right style div
dynamic_sidebar( 'featured-right' ); //Add the featured right widget
echo ''; // close out the divs and BOOM!
}
if ( is_active_sidebar( 'home-middle-4' ) ) {
echo '<div class="home-middle-4">';
dynamic_sidebar( 'home-middle-4' );
echo '</div><!-- end .home-middle-4 -->';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment