Created
December 24, 2012 17:41
-
-
Save cdils/4370154 to your computer and use it in GitHub Desktop.
Customize home.php on the Associate Theme
http://www.carriedils.com/customize-the-homepage-for-the-associate-theme/1090
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
// 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