-
-
Save DavidPeralvarez/efadd33bcbe948eb72a3671c100dea76 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Custom front page template | |
*/ | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'genesis_sample_do_loop' ); | |
function genesis_sample_do_loop(){ | |
genesis_grid_loop( array( | |
'features' => 2, | |
'feature_image_size' => 'featured-image', | |
'feature_image_class' => 'alignleft post-image', | |
'feature_content_limit' => 200, | |
'grid_image_size' => 'grid-thumbnail', | |
'grid_image_class' => 'aligncenter post-image', | |
'grid_content_limit' => 200, | |
'more' => __('(More information...)', 'genesis-sample') | |
) ); | |
} |
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 grid image sizes | |
add_image_size( 'grid-thumbnail', 200, 100, TRUE ); |
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
/* # Grid Loop | |
---------------------------------------------------------------------------------------------------- */ | |
.genesis-grid{ | |
padding: 20px; | |
margin: 0 0 20px; | |
width: 48%; | |
} | |
.genesis-grid-even{ | |
float: right; | |
} | |
.genesis-grid-odd{ | |
clear: both; | |
float: left; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment