rbarbour:
Unfortunately, I don't know how to "create" code. If there is an easy way, please clue me in.
Thanks,
Silver
Printable View
rbarbour:
Unfortunately, I don't know how to "create" code. If there is an easy way, please clue me in.
Thanks,
Silver
Your not creating any code, create a file and name it "jscript_matchHeight.php"
add this code to that file:
upload that file to: /includes/templates/responsive_default/jscript/PHP Code:
<?php
/**
* @package templateSystem
* @copyright Copyright 2003-2016 Zen Cart Development Team
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version ZCA/GIT: $Id: rbarbour New for v1.5.5 $
*/
?>
<script type="text/javascript"><!--//
(function($) {
$(document).ready(function() {
$('.centerBoxContentsProducts').matchHeight();
});
}) (jQuery);
//--></script>
rbarbour:
I think I did exactly as you had instructed and I still have uneven images. Take a look at categories -> cabinets. I don't think I did anything wrong, although it was the first time I did anything like that. I created a file in Notepad ++ and called it "jscript_matchHeight.php" without the quotes, per your instructions. Then, I added the rest of the code and added it to /includes/templates/responsive_default/jscript/
Again, the site is www.mygiftsite.com
Thanks,
Silver
rbarbour:
I made the change and have the same results. Don't know what's going on. Take a look:
http://www.mygiftsite.com/index.php?...ex&cPath=24_25
Silver
rbarbour:
Refer to Post #928:
Code:
upload this one:
That's not the responsive_sheffield_blue. Confused again??Code:CATALOG_FILES/includes/templates/responsive_default/jscript/jscript_matchHeight-min.js
Silver
rborbour:
I switched it over to the proper template: responsive_sheffield_blue, deleted the code:
from responsive default and still have the same results:Code:jscript_matchHeight-min.js
http://www.mygiftsite.com/index.php?...ex&cPath=24_25
Been a long day....What's up??
Silver
Very long day.
Ok, everything is loading correctly now.
Now that you have matchHeight up, you can delete this from your css
with matchHeight you have optionsCode:.centerBoxContentsProducts { min-height: 595px; }
this code makes all you listing boxes the same height
or you can add individual selectorsCode:$('.centerBoxContentsProducts').matchHeight();
now to apply matchHeight to center-boxes you'll need to add:Code:$('img.listingProductImage').matchHeight();
$('h3.itemTitle').matchHeight();
$('div.listingDescription').matchHeight();
$('div.pl-price').matchHeight();
Good luck, I'm calling it a day!Code:$('.centerBoxContentsNew').matchHeight();
$('.centerBoxContentsFeatured').matchHeight();
$('.centerBoxContentsSpecials').matchHeight();