Last active
July 30, 2016 22:51
-
-
Save billerickson/23d07fbb4ecddf397acf to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
/** | |
* 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' ); |
This file contains hidden or 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
.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