WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Fix distorted "Latest Post" image on homepage (5 posts)

  1. marino223
    Member
    Posted 3 years ago #

    Hello all,

    I am using The Morning After theme, by Woo Themes. I like the look a lot, but it has the annoying habit of scrunching the accompanying photo into a 470 x 210 pixel spot, whether the photo is that size or not. I know the column width has to remain at 470, but is there a way to change the height to be flexible to the correct proportion of the image?

    Here is my site: http://www.rockandrollwritein.com

    I found this code in the page.php file, which I believe is the culprit. see...

    <div id="latest_post_image">
    <?php woo_image('width=470&height=210'); ?>
    </div>

    Any help is appreciateed!

    Mike

  2. vtxyzzy
    Member
    Posted 3 years ago #

    Change the width to a percentage and leave out the height.

    `<?php woo_image('width=98%'); ?>

  3. marino223
    Member
    Posted 3 years ago #

    Thank you... it worked!

    By the way, this was in home.php, not page.php.

    Mike

  4. vtxyzzy
    Member
    Posted 3 years ago #

    You are welcome!

  5. deeve007
    Member
    Posted 2 years ago #

    Changing the code slightly so the image automatically crops in correct ration would be better, then the layout would be the same no matter the ratio of each image.

    Use WordPress' built in image manipulation: http://codex.wordpress.org/Function_Reference/add_image_size

Topic Closed

This topic has been closed to new replies.

About this Topic