Testimonial widget keep moving

Hi Kharis,
my testimonial widget on homepage is keep moving up and down because of different size ,To resolve this problem i referred to this solution here This code with plugin -

 jQuery(function($) {

      $(window).on('load resize', function() {

        var testiItem = $('.roll-testimonials .customer');
        var maxHeight = -1;

        testiItem.each(function() {
          maxHeight = maxHeight > $(this).height() ? maxHeight : $(this).height();
        });

        testiItem.each(function() {
          $('.roll-testimonials .owl-wrapper-outer').height(maxHeight);
          $(this).height(maxHeight);
        });

      });

}); 

but problem still remain same can u plz help i already cleared browser cache as well. my website is Kitchen Tek
help really appreciated
Regards
Fatima

Hi Fatima,

​Please accept my apologies for the delay in response. I was stuck in draft.

Try replacing the code to:

    jQuery(function($) {

         $(window).on('load resize', function() {

           var testiItem = $('.roll-testimonials .customer');
           var maxHeight = -1;

           testiItem.each(function() {
             maxHeight = maxHeight > $(this).height() ? maxHeight : $(this).height();
           });

           testiItem.each(function() {
             $('.roll-testimonials').height(maxHeight);
             $(this).height(maxHeight);
           });

         });

    }); 

Regards,
Kharis
aThemes Support

Hi Kharis,

Thanks for the help but the problem still there i already cleared cache and history.

Regards
Fatima

Hi Fatima,

Try this code:

    jQuery(function($) {

        function equalHeight(group) {
            //group.css('height','auto'); 
            var tallest = 0;
            group.each(function() {
               var thisHeight = $(this).height();
               if(thisHeight > tallest) {
                  tallest = thisHeight;
               }
            });
            group.height(tallest);
        }

        $(window).load( function() {  
          equalHeight($(".widget_sydney_testimonials .owl-item"));
        });

    });

Regards,
Kharis
aThemes Support