描述有时候不够长
想要把图再竖排一遍
需要在这个页面上 加代码:
wp-content/themes/flatsome/woocommerce/single-product/layouts/product-no-sidebar.php
<?php
global $product;
$attachment_ids = $product->get_gallery_image_ids();
if (!empty($attachment_ids)) {
echo '<div class="product-vertical-images">';
foreach ($attachment_ids as $attachment_id) {
$image_link = wp_get_attachment_url($attachment_id);
echo '<img src="' . $image_link . '" alt="" />';
}
echo '</div>';
}
?>