• Resolved Jennifer

    (@jenniferleaveyyahoocom)


    I added a post thumbnail to my twenty eleven child theme but I can’t seem to get it to float to the left of my post title on the front page. The url is chargedmagazine.org . Here’s the code in my content.php file:

    <?php if ( has_post_thumbnail()) : ?>
    
       <a>" title="<?php the_title_attribute(); ?>" >
    
       <?php the_post_thumbnail('thumbnail',array('class' => 'alignleft')); ?>
    
       </a>
    
     <?php endif; ?>				
    
    <h1 class="entry-title"><a>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    
    			<?php endif; ?>

    [In future wrap your code using backticks, not apostrophes]
    Can anyone help me figure out why the image is above the text instead of to the left?

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘post thumnail won't float to the left’ is closed to new replies.