Created
March 22, 2012 08:23
-
-
Save remkus/2157116 to your computer and use it in GitHub Desktop.
Adding Widget Area in between Grid
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
<?php | |
add_action( 'genesis_after_post','ecowijs_add_widget_area_between_grid' ); | |
/** | |
* The ecowijs_add_widget_area_between_grid function is all about | |
* dAdding Widget Area between Genesis Featured and Genesis Gri | |
* | |
* @access public | |
* @return void | |
*/ | |
function ecowijs_add_widget_area_between_grid() { | |
global $loop_counter; | |
if ( is_home() && $loop_counter == 1 ) { ?> | |
<div class="in-between-grid"> | |
<?php ( dynamic_sidebar( 'Adblock' ) ); ?> | |
</div><!-- end .in-between-grid --> | |
<?php } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment