Hi Jose,
Where did you add the code? I can’t see it and there is the static height from the cards.
The reason it’s not working is setting the height, when it’s set, it will remain on that value permanently since the condition is if height
is greater than maximum height but it became all the same. Please try changing the code to this
jQuery(window).on("resize", function () {
var max = 0,
mobile = jQuery(window).width();
if ( mobile > 767 ){
jQuery(".home #my-cards .x-card-inner").each(function(index, el) {
if( jQuery(this).height() > max ){
max = jQuery(this).height();
}
});
jQuery(".home #my-cards .x-card-inner").css('min-height', max);
}
}).resize();
Still, I’m not sure where that static height from the cards. If you have other custom codes then please remove them for now.
Thanks!