add column data attr to the single product image gallery wrapper
This commit is contained in:
parent
afc3d3a26a
commit
be3a77be32
|
@ -28,7 +28,7 @@ $thumbnail_post = get_post( $post_thumbnail_id );
|
|||
$image_title = $thumbnail_post->post_content;
|
||||
$placeholder = has_post_thumbnail() ? 'with-images' : 'without-images';
|
||||
?>
|
||||
<div class="<?php echo apply_filters( 'woocommerce_single_product_image_gallery_classes', 'woocommerce-product-gallery woocommerce-product-gallery--' . $placeholder . ' woocommerce-product-gallery--columns-' . sanitize_html_class( $columns ) . ' columns-' . sanitize_html_class( $columns ) . ' images' ); ?>">
|
||||
<div class="<?php echo apply_filters( 'woocommerce_single_product_image_gallery_classes', 'woocommerce-product-gallery woocommerce-product-gallery--' . $placeholder . ' woocommerce-product-gallery--columns-' . sanitize_html_class( $columns ) . ' columns-' . sanitize_html_class( $columns ) . ' images' ); ?>" data-columns="<?php echo sanitize_html_class( $columns ); ?>">
|
||||
<figure class="woocommerce-product-gallery__wrapper">
|
||||
<?php
|
||||
$attributes = array(
|
||||
|
|
Loading…
Reference in New Issue