Referencing this post: https://theme.co/apex/forum/t/equal-column-height/721/2
From a previous support email, I received this JS but really would like to implement in flex-box, leveraging stretch. I was looking to implement it on promo and box-grid elements.
jQuery(document).ready(function($) {
var max_height = 0
$('.x-section .x-container').each(function(){
$(this).children().children().children('.x-promo-content').each(function(){
var current_height = $(this).height();
if(current_height > max_height){
max_height = current_height;
}
});
$(this).children().children().children('.x-promo-content').height(max_height);
});
var max_height_bg = 0
$('.x-block-grid-item').each(function(){
var current_height_bg = $(this).height();
if(current_height_bg > max_height_bg){
max_height_bg = current_height_bg;
}
$(this).height(max_height_bg);
});
});
Thanks