Skip to content

Instantly share code, notes, and snippets.

@billerickson
Last active July 30, 2016 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save billerickson/23d07fbb4ecddf397acf to your computer and use it in GitHub Desktop.
Save billerickson/23d07fbb4ecddf397acf to your computer and use it in GitHub Desktop.
<?php
/**
* Archive Grid Divider
*
*/
function be_grid_divider() {
// only run on blog home and archives
if( !( is_home() || is_archive() ) )
return;
if( in_array( 'one-half', get_post_class() ) && !in_array( 'first', get_post_class() ) )
echo '<div class="grid-divider"></div>';
}
add_action( 'genesis_after_post', 'be_grid_divider' );
.grid-divider {
overflow:hidden;
width: 100%;
border-top: 1px solid #ccc;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment