Smaller Thumbnails on Category Pages
-
Hi everyone,
I have a problem for which I thought I had found a solution for in this previous thread. My problem is I really want the thumbnail images in various categories to be smaller than they appear to be as you can see on my practice website.
I don’t want the photos cropped. I only want them resized while keeping the same proportions. I have read about twenty different threads in the Hueman theme forum about how to do this. I have experimented with the function alx_setup() code I copied over from the parent theme to the child theme.
I then tried to add code as seen in the previous thread linked to above. But when I added the second bit of code Alex suggested in that thread, the website went blank. I finally fixed that by going to my file manager on the webhost site and deleted that line of code.
.post-thumbnail img { max-width: 100%; }
The above code is what broke the website. That code along with this code below:
function alx_thumbnail_upscale( ){ }
was supposed to make it possible to add a featured image that was possibly only 200×200 or 100×100 px and have it show up on a category page as only that size and not stretched out or upscaled.
I may have totally misunderstood the original directions, but I hope not.
I now currently have my medium images thumbnails with the following code:
add_image_size( 'thumb-medium', 500, 9999 );
The above is a way (the “9999”) to make the height unlimited so it will show the entire pic used as the featured image. This advice came from Alex in another thread.
Sorry for making this so long, but I do not want to leave out any details.
And I have regenerated thumbnails many times through my many experiments with the thumbnails code.
- The topic ‘Smaller Thumbnails on Category Pages’ is closed to new replies.