[resolved] Featured Image is Cropped - Twenty Ten (6 posts)

  1. splink01
    Posted 5 years ago #

    I am using the Twenty Ten theme in WP 3.0.1. I am trying to insert a Featured Image and the image comes out cropped for some reason. Only the center cut of the image is showing. Here is what it looks like - http://williamguidry.com

    I am uploading .jpg files via the WP interface, but can't seem to get it to work. What is wrong?


  2. Michael
    Posted 5 years ago #

    The images that are cropped in the post are the thumbnails of the original.

    WordPress crops a thumbnail from the original. You could insert them as a different size.


  3. splink01
    Posted 5 years ago #

    I have tried various different sizes. All return the same result, which is the cropped center cut of the image. No dice.

    A call somewhere is cropping the images, but I don't know where from.

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 5 years ago #

    What have you modified in the theme? I see you are using featured images differently.... and modified the header....

  5. splink01
    Posted 5 years ago #

    I made a child theme so that I would not lose all of my changes if and when Twenty Ten gets updated. In the theme I have removed tags, removed 'posted on' date, changed the header image size and added a thumbnail to each post by changing the <div class>. To add the thumbnail, there are four <div class="entry-content"> in the twentyten loop.php, I use this code on div three and four:

    <div class="entry-content">
        <?php /* if we have a thumbnail then show it */ ?>
        <?php if(has_post_thumbnail()): ?>
            <div class="cms-image" style="float: left; margin: 5px 5px 0 0;">
            <a>"> <?php the_post_thumbnail(); ?></a>
        <?php endif; ?>
        <?php the_excerpt(); ?>
        <?php /* REMOVED the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); */ ?>
    </div><!-- .entry-content -->
  6. splink01
    Posted 5 years ago #

    Fixed it. The images I was using for 'Featured Image' were too small. I am such a stupido.

    Hopefully this helps someone else and keeps them from losing hours of time.

    Thanks for your replies guys.

Topic Closed

This topic has been closed to new replies.

About this Topic