“Short” bug in Mantra 1.9.8

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.

Mantra is a clean, highly configurable and totally free WordPress theme. For more info check out the theme's page.

29 Comments

      1. Should deleting your comment be a priority as well? :)) Oh and, actually reading a post before commenting should definitely be a priority! I’m just joking here, don’t take it serious.

  1. My two sites are with your theme, i love it. One is with wp e-commerce. I cannot undertand why the pages with severals products (http://www.souvenirsdevoyages.fr/products-page/, and categories) have pictures in a frame that force me give a dimension as 120×230 at my pictures. More this frame are not visible in firefox but in chrome (i suppose in IE too – i am mac)
    i would prefere something as 200×200 or 180×200 but i do not find where i can change that and to mark that at each update… brrrr.
    thanks

    1. I don’t see any kind of border/frame in Chrome, but I do see it around the product boxes in Firefox.
      And it’s created by the gold-cart-plugin’s CSS – /wp-content/plugins/gold_cart_plugin/css/grid_view.css?ver=3.4.2 line 62:
      .product_grid_display .product_grid_item { box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3); }

      Check out the plugin’s options or use something like Firebug to inspect the site elements and figure out what and where from to remove.

      1. wouahh tanks you. i have remplaced 10 in padding and margin by 2, and my pictures i have changed 120×230 by 150×250 and it is realy best to see the products… thanks so much !

        sorry an other question for the stats (piwik) : i have choice no foot and no head in the home, i suppose the javascript not read because a great difference in less in the extern stat than at home jetpack… just now i have put the code at head and foot, i would like maybe put it somewhere else… because in your settings get no much stats… tks yet

  2. This fix didn’t work for me either… on my presentation page I still see a spinning icon in the slider area with the text underneath it. Unless the bug in the OP is something different than what I’m describing :(!

    1. The bug described in the post and the “slider images not loading” issue are not the same thing.
      And I see your slider images load just fine today, so you must have found the solution 🙂

This article is closed to new comments.