WordPress Montezuma theme on Safari

There’s a slight rendering problem with the Montezuma theme under Safari.

Any posts with a featured image, show the post text underneath the featured image. This is caused by the img_greyscale function reading the offsetWidth and offsetHeight properties from the owning object. It seems Safari is at odds with this.

Alter the function in wp-content/uploads/montezuma/javascript.js (you may have to search for this file on your system)

[code]

function bfa_img_grayscale() {
jQuery(‘.post-thumb img’).each(function(){
var el = jQuery(this);
el.css({‘position’:’absolute’})
.wrap("<div class=’img_wrapper’ style=’display:block’>")
.clone().addClass(‘img_grayscale’)
.css({‘position’:’absolute’,’z-index’:’998′,’opacity’:’1.0′})
.insertBefore(el)
.queue(function(){
var el = jQuery(this);
el.parent().css({‘width’:this.width,’height’:this.height });
el.dequeue();
});
});
}

[/code]

Leave a Reply