Skip to content

Instantly share code, notes, and snippets.

@gera3d
Last active December 7, 2019 23:56
Show Gist options
  • Save gera3d/0a1c242678bed029f68511cde5dffa15 to your computer and use it in GitHub Desktop.
Save gera3d/0a1c242678bed029f68511cde5dffa15 to your computer and use it in GitHub Desktop.
Match Height
jQuery(function() {
// apply your matchHeight on DOM ready
// apply matchHeight to each item container's items
jQuery('.product_item_inner').each(function() {
jQuery(this).children('.product_item_excerpt').matchHeight({
byRow: true
});
});
});
@gera3d
Copy link
Author

gera3d commented Dec 7, 2019

Updated targeting:
// test target jQuery('.product_item').each(function() { jQuery(this).children('.product_item_inner').matchHeight({ target: jQuery(this).find('.product_item_excerpt') }); });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment