Support » Fixing WordPress » Thumbnails and Excerpts

  • Resolved laurarduggan


    Hi, I’m a new wordpress user, not a PHP programmer (yet). I can’t quite see how to change this code that is in my Blog Excerpt template (using Responsive theme) … What it is doing is that I get the thumbnail image on the left, as I would like, and I get the excerpt next to it, as I would like. However, the “read more” appears underneath the thumbnail, rather than aligned next to the thumbnail and right underneath the excerpt. What do I need to change? Thanks.

    <div class="post-entry">
                        <?php if ( has_post_thumbnail()) : ?>
                            <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
                        <?php the_post_thumbnail('thumbnail',array('class' => 'alignleft')); ?>
                        <?php endif; ?>
              <?php the_excerpt(); ?>
                        <?php wp_link_pages(array('before' => '<div class="pagination">' . __('Pages:', 'responsive'), 'after' => '</div>')); ?>
                    </div><!-- end of .post-entry -->

    Thank you.
    (sample of incorrectly aligned “read more” can be found here:

Viewing 1 replies (of 1 total)
  • In case anyone needs the same thing, I figured out (and then the developers of responsive also confirmed) that it is as simple as saying .read-more {}, because some where in the excerpt function, it says .read-more {clear:both} which meant the thumbnail couldn’t align itself. So, case closed, on my own!

Viewing 1 replies (of 1 total)
  • The topic ‘Thumbnails and Excerpts’ is closed to new replies.