Classic Card Alignment

Hi,

I have 6 rows of classic cards that were once aligned. I’ve added new text to each card and they are no longer aligned. Is it possible to align them again without changing the text? These instructions didn’t work for me either:

Hi @edforwarddc,

Thank you for reaching out to us. This would require custom scripting, try adding the following code in the Theme Options > JS section:

(function($){
	function make_same_height(){
		var max = 0;

		$(".x-card-inner").each(function(index, el) {
			console.log( $(el).height() );
			if( $(el).height() > max ){
				max = $(el).height();
			}
		});

		$(".x-card-inner").css('height', max);
	}
	$(window).on('load resize', function(){
		setTimeout(make_same_height, 200);
	});
})(jQuery);

Please note that the code provided above serves as a guide only and is to help you in getting started, so implementing it and maintaining the code is out of our support scope. For further maintenance for new possible versions of the theme that may cause the above code to break, you will need to hire a developer.

Hope this helps!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.