Home Forums WoodMart support forum Some problems Reply To: Some problems

#161080

Artem Temos
Keymaster

Hello,

We are using OWL Carousel library for this slider.

Try to add the following PHP code snippet to the child theme functions.php file and check how it works

function woodmart_get_slide_class( $id ) {
		$class = '';
		$v_align = get_post_meta( $id, 'vertical_align', true );
		$h_align = get_post_meta( $id, 'horizontal_align', true );
		$full_width = get_post_meta( $id, 'content_full_width', true );
		$without_padding = get_post_meta( $id, 'content_without_padding', true );
		$class .= ' slide-valign-' . $v_align;
		$class .= ' slide-halign-' . $h_align;
		$class .= ' woodmart-loaded';
		$class .= ' content-' . ( $full_width ? 'full-width' : 'fixed' );
		$class .= $without_padding ? ' slide-without-padding' : '';
		return $class;
	}