The default Featured Image alignment in Genesis 2.0 is left aligned. If you want to change it, here’s how.
Add the following code to your theme’s functions.php file.
/* change post featured image alignment */ remove_filter( 'genesis_attr_entry-image', 'genesis_attributes_entry_image' ); add_filter( 'genesis_attr_entry-image', 'wnd_attributes_entry_image' ); function wnd_attributes_entry_image( $attributes ) { $attributes['class'] = 'alignright post-image entry-image'; $attributes['itemprop'] = 'image'; return $attributes; }
In the code above, the line 1 removes the genesis_attr_entry-image filter.
Line 2: Adds the filter back with your custom function. I created a unique function called wnd_attributes_entry_image. You can call it whatever you want.
Line 8: I changed the default class from alignleft to alignright.
Note: Your template might use different css styles for alignleft, alignright, or alignnone.