• Resolved karsten007

    (@karsten007)


    Hello,
    I have changed from the two column blog page to the one column blog page as you can see here.

    The problem now are the post thumbnails which are cut on the left and right side because of the different formats.

    As far as I can see from inspecting with firebug, in the one column layout the post thumbnails should have a size of 320×320 pixel in order to fit perfectly. But in the two column layout I was using the 520×245 pixel.

    Is it possible to adjust the thumbnails to the new format of 320 x 320px?

    Thank you for help and advise.

    Karsten

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Karsten. Imagine you’ve been busy these past few weeks…;-) The single column blog layout does use the 320×320 image but it’s resized by css to 200px wide with an auto height. So, since the thumbnail is a square, the image displayed becomes a 200×200 square. The 320×320 thumbnail was created by the theme using a hard crop which essentially cuts the required size out of the center of the original image.

    Just off the top of my head I can think of a couple of options:

    1. Import the alx_setup() function into your child theme, change the image size, remove the hard crop argument, then regenerate thumbnails. Here’s a bit more information from the theme documentation.

    2. Copy content-standard.php into your child theme and change the post thumbnail size from “thumb-standard” to “thumb-medium”. The theme would then use the 520×245 image which would be resized to 200×94.

    Hope that helps.

    Thread Starter karsten007

    (@karsten007)

    Hi bd,

    yes, I was busy…with the website, you are right…;-) But it is fun!

    And I am very happy to see that you are still supporting the hueman theme. Thank you very much for that.

    Your second suggestion is exactly what I was looking for.

    I have added

    .post-thumbnail img {
        padding-top: 40px;
    }

    and now I think it looks good. Please take a look here

    Do you agree that in this case padding or margin are doing both the job…to push the thumbnail down?

    Thank you for your advise!

    Yes, looks good. Now, if I could just remember my German from high school, then I could read it…;-)

    Couple of other things you might think about:

    1. You might consider changing the post image top padding to a margin, add a little padding all around and then add a slight border around the images. This would make the images stand out more against the light background, especially when the image also has a light background:

    .post-thumbnail img {
        margin-top: 40px;
        padding: 2px;
        border: 2px solid #ddd;
    }

    2. On the dropdown submenu I noticed there is space above the first item and below the last item. This css would eliminate those spaces:

    @media only screen and (min-width: 720px) {
      .nav ul {
        padding: 0;
      }
    }
    Thread Starter karsten007

    (@karsten007)

    Thank you very much for help!

    Now the images look much better. I am very happy.

    I wish you a really good time.

    I mark this topic as resolved.

    Thread Starter karsten007

    (@karsten007)

    resoved

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Thumbnails in one column blog page’ is closed to new replies.