WordPress Montezuma theme on Safari

Written by stovesy

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)

function bfa_img_grayscale() {
jQuery('.post-thumb img').each(function(){
var el = jQuery(this);
.wrap("<div class='img_wrapper' style='display:block'>")
var el = jQuery(this);
el.parent().css({'width':this.width,'height':this.height });

Leave a Reply