Skip to content

Instantly share code, notes, and snippets.

@wpperform
Created November 26, 2012 05:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpperform/4146705 to your computer and use it in GitHub Desktop.
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
<?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