Quantcast
Viewing latest article 2
Browse Latest Browse All 10

“Short” bug in Mantra 1.9.8

Image may be NSFW.
Clik here to view.

Troll Bug

Some of you might have noticed a… “short” bug after installing Mantra’s latest update.

More precisely, the content area appears too short, throwing part the last post or the pagination somewhere under the footer.

For the more tech-savy of you, the fix is to edit the mantra/js/frontend.js file (there’s no way to use WordPress’ built-in editor for this file, you’ll have to resort to the basic FTP/control panel editor method), look for

function equalizeHeights(){
var h1 = jQuery("#primary").height();
var h2 = jQuery("#content").height();
var h3 = jQuery("#secondary").height();
var max = Math.max(h1,h2,h3);
jQuery("#primary").height(max);
jQuery("#secondary").height(max);
jQuery("#content").height(max);
}
equalizeHeights();

Delete this whole part.

This bug will be permanently exterminated before the next update is released.

Later edit

If editing files is not your strong point, but you know how to upload files and/or themes, here’s the fixed Mantra archive and here’s the fixed file only.

 

For those of you wondering what this code does – this was meant to be an improvement that made the sidebar(s) the same height as the content area – in conjunction with the new sidebar(s)/content background colours options this should have made sure there was no colourless area under the sidebar when the sidebar has less content than the page.


Viewing latest article 2
Browse Latest Browse All 10

Trending Articles