Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Vagelis

    (@eboxnet)

    Hello there, I believe it’s your theme’s CSS that causing this issue
    could you disable

    div.owl-wrapper div.owl-item {
        max-width: 180px;
    }

    for a moment and test?

    Thread Starter dmitresk

    (@dmitresk)

    div.owl-wrapper div.owl-item {
        max-width: 180px;
    }

    did not help..

    .owl-wrapper {
    width: 8800px;
    left: 0px;
    display: block;
    transform: translate3d(-6400px, 0px, 0px);
    transition: all 800ms ease 0s;
    }

    maybe this is the problem

    Plugin Author Vagelis

    (@eboxnet)

    Did you remove this ? is it out atm ?

    div.owl-wrapper div.owl-item {
        max-width: 180px;
    }
    Plugin Author Vagelis

    (@eboxnet)

    if you can’t remove then you should ADD this one

    #woorelatedproducts .owl-item {
        max-width: initial!important;
    }

    This will override your theme’s css

    Thread Starter dmitresk

    (@dmitresk)

    #welelatedproducts .owl-item {
         max-width: initial! important;
    }

    added

    Plugin Author Vagelis

    (@eboxnet)

    Great, spacing issue fixed.

    Plugin Author Vagelis

    (@eboxnet)

    If you want to get 4 columns in the slider to reduce the size of related products you can use the function below into your child theme’s function.php file

    function v_woo_related_slider() { 
      if (is_product()) {?>
    	<script>
    	jQuery(document).ready(function($) {
    	$("#woorelatedproducts").data('owlCarousel').destroy();
      	var owl = $("#woorelatedproducts");
    	  owl.owlCarousel({
    	      items : 4,
    	      itemsDesktop : [1000,3],
    	      itemsDesktopSmall : [900,3],
    	      itemsTablet: [600,2],
    	      autoPlay: 3500,
    	      itemsMobile : false,
    	  });
    	  });
    	</script> <?php 
    	}
    }
    add_action( 'wp_footer', 'v_woo_related_slider' );

    If you are not familiar editing PHP files you should avoid doing that.

    Thread Starter dmitresk

    (@dmitresk)

    Great, thank you!!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘owl-carousel’ is closed to new replies.