Last week, I was alerted about a bug in the Asokay theme for WordPress, which caused user-uploaded header images to be incorrectly cropped. The default header image size was set to 1000×250 pixels after upload, while the layout only displayed 940×240 pixels of the image. I have fixed this bug and uploaded a new version of the theme (version 1.0.4) to the WordPress theme directory. The updated version is still in the review queue, but I expect it to be approved within a day or two. If you use v1.0.3 of the Asokay theme today, you will get an update notification through your WordPress admin area, from which you will be able to update to the new version, as soon as version 1.0.4 goes online on WordPress.org.
If you want to fix the error instantly, you can do so by editing the functions.php file of the theme. Look for the lines (line 80 and 81) that define the header image size:
define('HEADER_IMAGE_WIDTH', 1000); define('HEADER_IMAGE_HEIGHT', 250);
…and change the values into:
define('HEADER_IMAGE_WIDTH', 940); define('HEADER_IMAGE_HEIGHT', 240);
That will ensure that header images that you upload will be displayed correctly in the layout.
This article was written by Andreas Viklund
Web designer, writer and the creative engine behind this website. Author of most of the free website templates, along with some of the WordPress themes.