我正在尝试在产品页面库的缩略图下显示标题文本。我需要显示文本,因为图库中有很多图像,每个拇指都是引擎的一部分,并且名称可以帮助用户。
WooCommerce 产品页面中画廊的代码是:
echo apply_filters( 'woocommerce_single_product_image_thumbnail_html', sprintf( '<li data-thumb="%s">%s%s<a href="%s" class="%s lightbox" data-rel="ilightbox[product]" data-caption="%s" title="%s" alt="%s"><i class="fa-search-plus"></i></a></li>', $thumb_image, $image_html, $caption_html, $image_link, $image_class, $image_caption, $image_title, $image_alt ), $attachment_id, $post->ID, $image_class );`
我该如何编辑它?或者,有什么解决办法吗?谢谢