“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.

About Zed

The analytical mind behind Cryout Creations. Responsible for all the wires and tubes; dedicates a lot of time to breaking stuff and finding bugs; whenever something blows up, he's to blame.
Tagged , , . Bookmark the permalink.

29 Responses to “Short” bug in Mantra 1.9.8

  1. Stephane says:

    another solution : push the frontend.js script à the end of the page.

    i have a long page > 8000 px with images and it works !!!

  2. nhlabornews says:

    My site is still not working, when will the update come out to correct this. A majority of my posts are being truncated by this and I it is making me crazy.

    This should be a priority!!!!

  3. J M Ward says:

    Thanks for the quick notification within Mantra. I registered it at the back of my mind, then was able to pull it out when I hit the problem later.
    J M Ward

  4. The fix isnt working…uploaded the “fix only” file, apart from trying to manually edit the code on another site (4 sites run Mantra) Still the bottom part is missing :(

  5. penseelibre says:

    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

    • Zed says:

      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.

      • penseelibre says:

        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

  6. Best says:

    Just what I needed. Thanks!

  7. RYan says:

    Thaks heaps for that. Great fix. Is anyone having issues with embed video sizing. I can’t seem to control mine with code they just revert to the page width. They are huge.

  8. nionvox says:

    THANK-YOU. This was driving me mad this week!

  9. DJ says:

    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 :( !

  10. Wendy says:

    Super! Thanks for the file, it worked great! :-)

  11. Wendy says:

    Could you please fix this bug? Cause I can’t edit the JS file, cause it won’t open.

  12. mantra says:

    Yes!! Thank you for the fix!!! Awesome!

  13. Matt says:

    Ok I must not be as tech savy as I thought. How do I access the file to edit this? When will the theme be updated to fix this bug?

  14. Ciprian says:

    The fix did not work for me :(

  15. santosh says:

    I want to use static page for this theme in place of presentation page. I have crated a page and want to add thumbnails for each post excerpt. How i can implement this please help me.

  16. santosh says:

    Thanks for the fix I was wandering on this problem

  17. Brian Rubin says:

    Thank you for this, this is the exact reason I visited your site today. It worked like a champ. :)

Leave a Reply