Asokay theme for WordPress updated to v1.0.4

Post 82 of 262

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

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.


Tom SanfordOctober 11, 2011 at 09:41Reply

Hi Andreas,

I downloaded this last week but deleted it after thinking it was a problem with mines. This did the job. Thanks for the fixed!

Andreas ViklundOctober 11, 2011 at 12:23Reply

No, it was a miscalculation made by me that I didn’t spot before the theme was released. The header images would still work and most often look OK even with this error, but 60 pixels on the right side of the image would be hidden because the header image box was set to hide any overflow above the width of 940 pixels that I had defined in the CSS. I apologize for that and hope that you’ll find the Asokay theme useful again!

Romanov KoyunuFebruary 24, 2012 at 13:19Reply

çok teşekkür ederim yardımlarınızdan dolayı sitede bilgilerinize yer vereceğim . Thank you