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

  1. marino223
    Posted 5 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'); ?>

    Any help is appreciateed!


  2. vtxyzzy
    Posted 5 years ago #

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

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

  3. marino223
    Posted 5 years ago #

    Thank you... it worked!

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


  4. vtxyzzy
    Posted 5 years ago #

    You are welcome!

  5. deeve007
    Posted 4 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