Skip to content

Instantly share code, notes, and snippets.

@remkus
Created March 22, 2012 08:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remkus/2157116 to your computer and use it in GitHub Desktop.
Save remkus/2157116 to your computer and use it in GitHub Desktop.
Adding Widget Area in between Grid
<?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