If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
I’m seeing that the thumbnail images automatically generated by my portfolio pages are both not uniform in size, and randomly cropped/resized. I would like to upload a custom-made thumbnail for each portfolio item, but I have no idea if that’s possible. Suggestions?
My site is http://www.alainaho.com
Kindly open wp-contentthemesangularfunctions.php and find this line of code:
$avia_config['imgSize']['portfolio'] = array('width'=>465, 'height'=>346); // images for portfolio entries (2,3,4 column)
and replace it with:
$avia_config['imgSize']['portfolio'] = array('width'=>465, 'height'=>346, 'crop'=>true); // images for portfolio entries (2,3,4 column)
This will crop the images you have uploaded to make sure it will have uniform size without considering the aspect ratio of the image. Then kindly use the Regenerate plugin to regenerate all your images, http://wordpress.org/extend/plugins/regenerate-thumbnails/
I also noticed that some of the portfolio columns are too long which pushes the image below it. Try to make it shorter so they also have uniform size in space. Hope this helps.
Thanks for the response, but that still doesn’t directly address my original question–can I upload custom thumbnails for my portfolio items?
I’m not sure what you mean by custom thumbnails, I thought you refer on the size of the custom thumbnails that is shown on the portfolio entries (you can do that by adjust thing the height and width of the code above). If you are referring on uploading a custom thumbnail and replaced the old image, I believe you have already done it on your site.
The topic ‘Displaying Custom Thumbnails’ is closed to new replies.