Created
November 26, 2012 05:13
-
-
Save wpperform/4146705 to your computer and use it in GitHub Desktop.
Aligns attached image in thumbnail size to the right in Genesis grid loop
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 | |
/* | |
Plugin Name: wpPERFORM.com Genesis Grid Image - Align Right | |
Description: Aligns attached image in thumbnail size to the right in Genesis grid loop | |
Version: 0.1 | |
License: GPL | |
Author: The wpPERFORM.com Team | |
Author URI: http://wpperform.com | |
*/ | |
add_filter( 'genesis_grid_loop_args','wpp_grid_image_left' ); | |
function wpp_grid_image_left() { | |
$grid_args = array( | |
'grid_image_size' => 'thumbnail', | |
'grid_image_class' => 'alignright', | |
); | |
return $grid_args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment