Auto resize pictures from front page (where its big) to other category pages

  • Unknown's avatar

    I am using Christoper Theme and I am trying to figure out how to automatically get my photos to resize when they are put into a gallery in the category pages. Right now the bottom part of the pictures is being cut off.
    Here is the code I tried using:
    .attachment-post-thumbnail.size-post-thumbnail.wp.post-image {
    height: auto;
    width: px;
    max-height: auto;
    max-width: 100%;
    }

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi there, the original images are actually being resized and cropped by the theme and WordPress software to fit within the proportions of the area provided, so there isn’t anything to recover, it is being cut off and there is no way for us to change that behavior without some pretty extensive modification to the theme.

    First off, let me offer this. The space available for the images is a ratio of 1.6 to 1 (width to height). Prepare a new image for one of the posts and make that image in that ratio. For example, if the image is 500px tall, multiply that by 1.6 to get your target width, which would be 800px. Create an image in that size, upload it to your media library and then set that image as the featured image on the post and see how that comes out.

  • The topic ‘Auto resize pictures from front page (where its big) to other category pages’ is closed to new replies.