您的PHP为gallery网格项生成以下html:
<div class="sh-image-gallery-item">
<div class="sh-gallery-item">
<div class="post-meta-thumb">
<img src="https://www.coleopterafarm.cz/wp-content/uploads/2019/12/PICT9418-660x660.jpg" alt="Carabus (Coptolabrus) smaragdinus brannicki">
<a class="sh-overlay-style2" href="https://www.coleopterafarm.cz/wp-content/uploads/2019/12/PICT9418-1024x768.jpg" data-rel="lightcase:imgCollectionsh-image-gallery-simple-Bi7XU3vsdZ">
<div class="sh-overlay-item">
<div class="sh-overlay-item-open"></div>
</div>
</a>
</div>
</div>
</div>
问题是JS脚本是捆绑JS文件的一部分
https://www.coleopterafarm.cz/wp-content/themes/jevelin/js/plugins.js 期望
title="your title for image"
的属性
<a class="sh-overlay-style2">
所以正确的HTML应该是
<div class="sh-image-gallery-item">
<div class="sh-gallery-item">
<div class="post-meta-thumb">
<img src="https://www.coleopterafarm.cz/wp-content/uploads/2019/12/PICT9418-660x660.jpg" alt="Carabus (Coptolabrus) smaragdinus brannicki">
<a class="sh-overlay-style2" title="Carabus (Coptolabrus) smaragdinus brannicki" href="https://www.coleopterafarm.cz/wp-content/uploads/2019/12/PICT9418-1024x768.jpg" data-rel="lightcase:imgCollectionsh-image-gallery-simple-Bi7XU3vsdZ">
<div class="sh-overlay-item">
<div class="sh-overlay-item-open"></div>
</div>
</a>
</div>
</div>
</div>
这样,JS将使用单击项目的标题,并按原样显示它。此外,支持Jevelin主题开发人员也是一个更大的问题
https://themeforest.net/item/jevelin-multipurpose-premium-responsive-wordpress-theme/14728833/support可能他们已经在下一个主题的更新中修复了它。否则,您必须自己修改PHP。