add class to thumbnail
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 6 Apr 2015 21:02:40 +0000 (17:02 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 6 Apr 2015 21:02:40 +0000 (17:02 -0400)
alignright

home.php

index a307bdd..ac40c7b 100644 (file)
--- a/home.php
+++ b/home.php
@@ -17,7 +17,7 @@
                                                     <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
                                                     <span class="meta"> Posted on <strong><?php the_time('F jS, Y'); ?></strong> </span>
                                                 </header>
-                                                <?php echo get_the_post_thumbnail($post->ID, 'thumbnail');?>
+                                                <?php echo get_the_post_thumbnail($post->ID, 'thumbnail', array('class'=>'alignright'));?>
                                                 <?php echo the_advanced_excerpt('length=50&length_type=words&no_custom=1&ellipsis=%26hellip;&exclude_tags=img'); ?>
                                             </article>
                                         </div>