Last active
November 25, 2015 17:24
-
-
Save duroe5698/33e52d3e1dcf18deea09 to your computer and use it in GitHub Desktop.
Display Featured Image floated to the left in single Posts for Genesis Framework Snippet
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 | |
//* Display Featured Image floated to the left in single Posts. | |
add_action( 'genesis_entry_content', 'md_show_featured_image_single_posts', 9 ); | |
function md_show_featured_image_single_posts() { | |
if ( ! is_singular( array( 'post') )) { | |
return; | |
} | |
$image_args = array( | |
'size' => 'medium', | |
'attr' => array( | |
'class' => 'alignleft', | |
), | |
); | |
genesis_image( $image_args ); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment