Last active
October 7, 2015 13:37
-
-
Save unix7/3172681 to your computer and use it in GitHub Desktop.
3 column homepage
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 | |
/* | |
Template: Home | |
*/ | |
//Add Post Class Filter | |
add_filter('post_class', 'sf_post_class'); | |
function sf_post_class($classes) { | |
global $loop_counter; | |
$classes[] = 'one-third'; | |
if ($loop_counter % 3 == 0) { | |
$classes[] .= 'first '; | |
} | |
return $classes; | |
} | |
/** Move Post Info */ | |
remove_action('genesis_before_post_content','genesis_post_info'); | |
remove_action('genesis_after_post_content','genesis_post_meta'); | |
genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment